Files
hdhs/pi-docker-compose.yml

26 lines
617 B
YAML

version: '3.7'
services:
pwa:
build:
context: ./pwa
dockerfile: Dockerfile-pi
volumes:
- type: bind
source: ./pwa/build
target: /data/app/build
ports:
- "3000:3000"
container_name: haiti_pwa
database:
image: "postgres" # use latest official postgres version
env_file:
- ./database.env # configure postgres
volumes:
- "database-data:/var/lib/postgresql/data/" # persist data even if container shuts down
ports:
- "5432:5432"
volumes:
database-data: # named volumes can be managed easier using docker-compose