mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-10-26 17:35:23 +00:00
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
version: '3'
|
|
services:
|
|
pwa:
|
|
build:
|
|
context: ./pwa
|
|
volumes:
|
|
# These dirs can be changed outside of the conatiner, and reflected within.
|
|
# All other files require a rebuild:
|
|
# docker-compose -f dev-docker-compose.yml up --build
|
|
- ./pwa/src:/data/src
|
|
- ./pwa/cypress:/data/cypress
|
|
- ./pwa/public:/data/public
|
|
- ./pwa/coverage:/data/coverage
|
|
ports:
|
|
- "3000:3000"
|
|
container_name: haiti_pwa
|
|
environment:
|
|
environment: "docker"
|
|
|
|
database:
|
|
image: "postgres" # use latest official postgres version
|
|
volumes:
|
|
- "./pgdata:/var/lib/postgresql/data" # persist data even if container shuts down
|
|
ports:
|
|
- "5432:5432"
|
|
expose:
|
|
- "5432"
|
|
environment:
|
|
POSTGRES_DB: app_db
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: HaitiCHI
|
|
environment: "docker"
|
|
|
|
api:
|
|
image: postgrest/postgrest
|
|
ports:
|
|
- "4000:4000"
|
|
expose:
|
|
- "4000"
|
|
links:
|
|
- database:database
|
|
environment:
|
|
PGRST_DB_URI: postgres://postgres:HaitiCHI@database:5432/app_db
|
|
PGRST_DB_SCHEMA: public
|
|
PGRST_DB_ANON_ROLE: postgres
|
|
PGRST_SERVER_PORT: 4000
|
|
environment: "docker"
|
|
depends_on:
|
|
- database
|
|
|
|
swagger:
|
|
image: swaggerapi/swagger-ui
|
|
ports:
|
|
- "4001:8080"
|
|
expose:
|
|
- "8080"
|
|
environment:
|
|
API_URL: http://localhost:4000
|
|
environment: "docker" |