-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (70 loc) · 1.92 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
69
70
71
72
73
74
75
services:
postgis:
image: postgis:2.3
build: ./src/postgis/2.3
hostname: depth-postgis
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./volumes/postgis/data:/var/lib/postgresql/data
- ./volumes/postgis/log:/var/log/postgresql/
- ./volumes/postgis/etc/postgresql/9.6/main/postgresql.conf:/etc/postgresql/9.6/main/postgresql.conf
#- ./volumes/postgis/etc/postgresql/9.6/main/pg_hba.conf:/etc/postgresql/9.6/main/pg_hba.conf
#- ./volumes/postgis/etc/postgresql/9.6/main/pg_ident.conf:/etc/postgresql/9.6/main/pg_ident.conf
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
db:
proxy:
ports:
- "5432:5432"
command: run
# depth postprocess
postprocess:
image: postprocess:1
build: ./src/postprocess/1
hostname: postprocess
restart: unless-stopped
depends_on:
- postgis
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./volumes/postprocess/app:/app
- ./volumes/postprocess/rawdata/:/app/data
- ./volumes/postprocess/seesea/:/seesea/
- ./volumes/postprocess/.repository/:/.repository/
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
db:
proxy:
command: run
pgadmin:
image: dpage/pgadmin4:3.0
hostname: pgadmin
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_CONFIG_CONSOLE_LOG_LEVEL: 10
volumes:
- ./volumes/pgadmin:/var/lib/pgadmin
ports:
- "8888:80"
networks:
db:
proxy:
command: run
# Custom network so all services can communicate using a FQDN
networks:
db:
proxy:
external: true