cloud-fog-service-broker/docker-compose.yml
jmarchel 40d9f11047 Use env vars in front and back end projects
Change-Id: Id093976032f079c62efd9fcaaf0617e05ceef3b0
2024-04-02 08:00:18 +00:00

42 lines
793 B
YAML

version: '3.0'
services:
backend:
build:
context: ./cfsb-backend
dockerfile: Dockerfile
ports:
- "8001:8001"
env_file:
- ./cfsb-backend/.env.prod
depends_on:
- db
networks:
cfsb-network:
db:
image: postgres:16
ports:
- "5432:5432"
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=pass123
- POSTGRES_DB=fog_broker
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./cfsb-backend/db/db_script.sql:/docker-entrypoint-initdb.d/db_script.sql
networks:
cfsb-network:
frontend:
build:
context: ./cfsb-frontend
dockerfile: Dockerfile
ports:
- "8080:80"
networks:
cfsb-network:
networks:
cfsb-network:
volumes:
postgres_data: