-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
57 lines (54 loc) · 1.48 KB
/
docker-compose.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.3"
services:
cit-web:
container_name: cit-web
build: ./cit3.0-web
env_file:
- cit3.0-web/.env
restart: always
ports:
- "80:8080"
depends_on:
- cit-api
cit-api:
build:
context: ./cit-api
dockerfile: Dockerfile.dev
image: countable/cit
volumes:
- ./cit-api:/code
# - static:/static
# - media:/code/data
env_file:
- cit-api/.env
ports:
- 8000:8000
depends_on:
- db
db:
image: kartoza/postgis:15-3.3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cit
POSTGRES_MULTIPLE_EXTENSIONS: postgis,pgrouting,pg_buffercache,pg_stat_statements
volumes:
- ./db/init.sql:/usr/share/postgresql/15/contrib/postgis-3.3/legacy_minimal.sql
- ./db/cittest1.sql:/docker-entrypoint-initdb.d/setup-db.sql
ports:
- 5432:5432
patroni-db:
# image: mdillon/postgis
# image: postgis/postgis:15-3.3
# image: pgrouting/pgrouting
image: artifacts.developer.gov.bc.ca/bcgov-docker-local/patroni-postgres:12.4-latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cit
POSTGRES_MULTIPLE_EXTENSIONS: postgis,pgrouting,pg_buffercache,pg_stat_statements
# volumes:
# - ./db/init.sql:/usr/share/postgresql/15/contrib/postgis-3.3/legacy_minimal.sql
# - ./db/cittest1.sql:/docker-entrypoint-initdb.d/setup-db.sql
ports:
- 5432:5432