mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-10-26 17:35:23 +00:00
26 lines
617 B
YAML
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 |