-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·68 lines (63 loc) · 1.65 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
58
59
60
61
62
63
64
65
66
67
68
version: "3.9"
services:
postgis:
build:
context: ./
dockerfile: ./Dockerfiles/Dockerfile_postgis
image: geocoder_postgis_img
container_name: geocoder_postgis_cont
shm_size: 4gb
restart: always
ports:
- "4326:5432"
secrets:
- postgresql_user
- postgresql_password
- postgresql_db
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgresql_password
POSTGRES_USER_FILE: /run/secrets/postgresql_user
POSTGRES_DB_FILE: /run/secrets/postgresql_db
GEOCODER_STATES: ${GEOCODER_STATES}
GEOCODER_YEAR: ${GEOCODER_YEAR}
volumes:
- public_geocoder:/var/lib/postgresql/data
- ./gisdata:/gisdata
pgadmin4:
build:
context: ./
dockerfile: ./Dockerfiles/Dockerfile_pgadmin4
image: geocoder_pgadmin4_img
container_name: geocoder_pgadmin4_cont
restart: always
depends_on:
- postgis
environment:
PGADMIN_DEFAULT_EMAIL_FILE: /run/secrets/pgadmin_email
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/pgadmin_password
ports:
- "4327:80"
secrets:
- pgadmin_email
- pgadmin_password
volumes:
- public_geocoder_admin:/var/lib/pgadmin
# superset:
# image: apache/superset:pr-15413
# restart: always
# depends_on:
# - postgres
volumes:
public_geocoder:
public_geocoder_admin:
secrets:
postgresql_user:
file: ./secrets/postgresql_user.txt
postgresql_password:
file: ./secrets/postgresql_password.txt
postgresql_db:
file: ./secrets/postgresql_db.txt
pgadmin_email:
file: ./secrets/pgadmin_email.txt
pgadmin_password:
file: ./secrets/pgadmin_password.txt