version: '3.4' networks: dev: driver: bridge services: giecchallenge_backend: image: ${REGISTRY:-giecchalleng-backend}/giecchallenge-backend.api:${PLATFORM:-linux}-${TAG:-latest} depends_on: - "giecchallenge_db" container_name: giecchallenge-backend ports: - "17021:443" - "17020:80" build: context: . dockerfile: ./backend/GiecChallenge/Dockerfile environment: - ConnectionStrings__PostgreSQL=${ConnectionStrings__PostgreSQL} - JWT__ValidAudience=${JWT__ValidAudience} - JWT__ValidIssuer=${JWT__ValidIssuer} - JWT__Secret=${JWT__Secret} - PasswordHash=${PasswordHash} - AllowedHosts=* - OriginAllowed=${OriginAllowed} networks: - dev giecchallenge_frontend: image: ${REGISTRY:-giecchalleng-frontend}/giecchallenge-frontend.api:${PLATFORM:-linux}-${TAG:-latest} depends_on: - "giecchallenge_backend" stdin_open: true tty: true container_name: giecchallenge-frontend ports: - "13000:3000" build: context: . dockerfile: ./frontend/Dockerfile args: REACT_APP_API_URL: ${REACT_APP_API_URL} environment: - API_URL networks: - dev giecchallenge_db: image: postgres:latest container_name: giecchallenge_db environment: - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=GiecChallenge expose: - "14432" ports: - "14432:14432" command: -p 14432 restart: always volumes: - customer_data:/var/lib/postgresql/data/ - ./backend/GiecChallenge/Data/giecchallenge.sql :/docker-entrypoint-initdb.d/seed.sql networks: - dev volumes: customer_data: