-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.yml
executable file
·131 lines (131 loc) · 3.64 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
services:
adaguc-viewer:
image: openearth/adaguc-viewer
container_name: adaguc-viewer
hostname: adaguc-viewer
networks:
- adaguc-network
environment:
- "LOCAL_ADAGUCSERVER_ADDR=${EXTERNALADDRESS}" # Should be same as adaguc-server's EXTERNALADDRESS
- "REMOTE_ADAGUCSERVER_ADDR=http://adaguc-server:8080/" # Do not change this within the docker-compose environment
- "ADAGUCSERVICES_AUTOWMS=${EXTERNALADDRESS}/autowms?"
env_file:
- .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
adaguc-data-explorer:
image: openearth/adaguc-data-explorer
container_name: adaguc-data-explorer
hostname: adaguc-data-explorer
networks:
- adaguc-network
environment:
- "ADAGUC_AUTOWMS_ENDPOINT=${EXTERNALADDRESS}/autowms?"
env_file:
- .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
adaguc-server:
image: openearth/adaguc-server
# build: ..
# deploy:
# resources:
# limits:
# cpus: "2"
# memory: 2048M
container_name: my-adaguc-server
hostname: my-adaguc-server
volumes:
- ${ADAGUC_DATASET_DIR}/:/data/adaguc-datasets
- ${ADAGUC_AUTOWMS_DIR}/:/data/adaguc-autowms
- ${ADAGUC_DATA_DIR}/:/data/adaguc-data
networks:
- adaguc-network
environment:
- "PGBOUNCER_DISABLE_SSL=true"
- "PGBOUNCER_ENABLE=true"
- "ADAGUC_DB=host=adaguc-db port=5432 user=adaguc password=adaguc dbname=adaguc"
- "ADAGUC_ENABLELOGBUFFER=TRUE"
- "ADAGUC_AUTOWMS_DIR=/data/adaguc-autowms"
- "ADAGUC_DATA_DIR=/data/adaguc-data"
- "ADAGUC_DATASET_DIR=/data/adaguc-datasets"
- "ADAGUC_REDIS=redis://adaguc-redis:6379"
env_file:
- .env
restart: unless-stopped
links:
- adaguc-db
depends_on:
- adaguc-db
- adaguc-redis
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
nginx:
build: nginx-adaguc
container_name: nginx-adaguc
hostname: nginx-adaguc
ports:
- "${ADAGUC_PORT}:443"
networks:
- adaguc-network
environment:
- "SSL_DOMAINS=${EXTERNALADDRESS}"
- "EXTERNAL_HOSTNAME=${EXTERNALADDRESS}"
volumes:
- /etc/letsencrypt
- /cert
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
adaguc-db:
image: postgres:13
container_name: adaguc-db
hostname: adaguc-db
# Ensures containers running in the adaguc-network docker network can connect to the database, provided they use the
# right credentials
networks:
- adaguc-network
volumes:
- adaguc-server-compose-adagucdb:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=adaguc"
- "POSTGRES_PASSWORD=adaguc"
- "POSTGRES_DB=adaguc"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
adaguc-redis:
image: redis:7
container_name: adaguc-redis
hostname: adaguc-redis
restart: unless-stopped
networks:
- adaguc-network
volumes:
adaguc-server-compose-adagucdb:
networks:
adaguc-network:
#Run
# bash docker-compose-generate-env.sh -a ~/adaguc-server-docker/adaguc-autowms/ -d ~/adaguc-server-docker/adaguc-datasets/ -f ~/adaguc-server-docker/adaguc-data -p 443
# docker-compose pull
# docker-compose build
# docker-compose up -d --build
# wait 10 seconds for the services to start