ubiquitous-computing-geo-ti.../docker-compose.yml

36 lines
609 B
YAML

version: '3.7'
services:
frontend:
container_name: qbc_frontend
build:
context: ./frontend
ports:
- "8080:80"
depends_on:
- backend
backend:
container_name: qbc_backend
restart: always
build:
context: ./backend
ports:
- "5000:5000"
depends_on:
- db
db:
container_name: qbc_database
restart: always
build:
context: ./sql
volumes:
- "db-data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: geotime
POSTGRES_PASSWORD: supersecure
POSTGRES_USER: root
volumes:
db-data: