Created
April 13, 2024 03:35
-
-
Save dlobregon/e15ed4f9b105bda91b3f334c2cd80a25 to your computer and use it in GitHub Desktop.
docker-compose-diego-idt
This file contains 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
version: '3' | |
networks: | |
idt-network: | |
services: | |
postgres: | |
image: postgres:latest | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: states_db | |
volumes: | |
- ./idt-datalayer/1-dump-states_db.sql:/docker-entrypoint-initdb.d/1-dump-states_db.sql | |
networks: | |
- idt-network | |
backend: | |
build: | |
context: ./idt-backend | |
environment: | |
DB_HOST: postgres | |
ports: | |
- "4000:4000" | |
depends_on: | |
- postgres | |
networks: | |
- idt-network | |
frontend: | |
build: | |
context: ./idt-frontend | |
environment: | |
BACKEND_HOST: backend | |
ports: | |
- "8080:8080" | |
depends_on: | |
- backend | |
networks: | |
- idt-network |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment