forked from medic/cht-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.postgres.yml
34 lines (32 loc) · 973 Bytes
/
docker-compose.postgres.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
postgres:
image: postgres:13
restart: always
ports:
- 5432:5432
volumes:
- ./postgres/init-dbt-resources.sh:/docker-entrypoint-initdb.d/init-dbt-resources.sh:z
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DBT_POSTGRES_USER=${DBT_POSTGRES_USER}
- DBT_POSTGRES_PASSWORD=${DBT_POSTGRES_PASSWORD}
- DBT_POSTGRES_SCHEMA=${DBT_POSTGRES_SCHEMA}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_TABLES=${COUCHDB_DBS}
- POSTGRES_SCHEMA=${POSTGRES_SCHEMA}
networks:
cht-net:
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: "False"
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
cht-net:
networks:
cht-net:
name: ${CHT_NETWORK:-cht-net}