docker-compose.yml (1399B)
1 # Use postgres/example user/password credentials 2 # - https://hub.docker.com/_/postgres 3 # - https://github.com/docker-library/docs/blob/master/postgres/README.md 4 version: '3.9' 5 6 services: 7 proxy: 8 container_name: proxy 9 image: docker.io/library/nginx:stable-alpine 10 # wait for other services 11 command: ["sh", "-c", "sleep 10 && nginx -g 'daemon off;'"] 12 #command: ["sh", "-c", "sleep 3600"] 13 volumes: 14 - ./proxy.conf:/etc/nginx/conf.d/proxy.conf:ro 15 - ./certs:/etc/nginx/certs:ro 16 ports: 17 - target: 8443 18 published: 443 19 protocol: tcp 20 networks: 21 - myheats 22 23 myheats-frontend: 24 container_name: myheats-frontend 25 image: registry.digitalocean.com/myheats/myheats:latest 26 env_file: ".env.local" 27 networks: 28 - myheats 29 30 myheats-api: 31 container_name: myheats-api 32 image: registry.digitalocean.com/myheats/myheats:api 33 env_file: ".env.local" 34 networks: 35 - myheats 36 37 myheats-db: 38 container_name: myheats-db 39 image: docker.io/postgres:16-alpine 40 shm_size: 128mb 41 volumes: 42 - ./data/pgdata:/var/lib/postgresql/data 43 - ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh:ro 44 - ~/myheats.git/schema:/schema:ro 45 networks: 46 - myheats 47 48 adminer: 49 container_name: adminer 50 image: docker.io/adminer:latest 51 restart: always 52 networks: 53 - myheats 54 55 networks: 56 myheats: