-
-
Save eeganlf/566f145ee45465d70bd4fc793e056434 to your computer and use it in GitHub Desktop.
Docker Compose V3 Spec with fix to DB.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| volumes: | |
| db-data: | |
| networks: | |
| instavote: | |
| driver: bridge | |
| services: | |
| vote: | |
| image: xxxxx/vote:latest | |
| ports: | |
| - 5000:80 | |
| depends_on: | |
| - redis | |
| networks: | |
| - instavote | |
| redis: | |
| image: redis:alpine | |
| networks: | |
| - instavote | |
| db: | |
| image: postgres:15-alpine | |
| environment: | |
| POSTGRES_USER: "postgres" | |
| POSTGRES_PASSWORD: "postgres" | |
| volumes: | |
| - "db-data:/var/lib/postgresql/data" | |
| - "./healthchecks:/healthchecks" | |
| healthcheck: | |
| test: /healthchecks/postgres.sh | |
| interval: "5s" | |
| networks: | |
| - instavote | |
| result: | |
| image: xxxxx/result:latest | |
| ports: | |
| - 5001:4000 | |
| depends_on: | |
| - db | |
| networks: | |
| - instavote | |
| worker: | |
| image: xxxxx/worker:latest | |
| depends_on: | |
| - redis | |
| - db | |
| networks: | |
| - instavote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment