Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
132 lines (113 loc) · 3.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
132 lines (113 loc) · 3.11 KB
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
132
version: "3.7"
services:
requirements:
container_name: giscube_giscube-admin_requirements
build:
context: .
dockerfile: docker/django/ubuntu-20.04/Dockerfile
args:
- EXTRA_REQUIREMENTS=devel
- PIP_PACKAGES=setuptools==57.5.0
- APT_PACKAGES=
- APT_PACKAGES_BUILD=
image: giscube_giscube-admin_requirements
entrypoint: /bin/bash -c "chown -v www-data:www-data /app_data"
command: []
volumes:
- app_data:/app_data
db:
image: postgis/postgis:12-3.0
env_file:
- app.env
volumes:
- .:/app:cached
- ./docker-custom/postgres/dictionaries/dist/ca.affix:/usr/share/postgresql/11/tsearch_data/ca.affix
- ./docker-custom/postgres/dictionaries/dist/ca.dict:/usr/share/postgresql/11/tsearch_data/ca.dict
- ./docker-custom/postgres/dictionaries/dist/catalan.stop:/usr/share/postgresql/11/tsearch_data/catalan.stop
- pg_data:/var/lib/postgresql/data
django:
depends_on:
- requirements
- db
image: giscube_giscube-admin_requirements
env_file:
- app.env
command: ["/bin/bash", "/app/docker/scripts/wait-for-it.sh", "db:5432", "--", "/bin/bash", "/app/docker-custom/django/runserver.sh"]
volumes:
- .:/app:cached
- app_data:/app_data
uwsgi:
depends_on:
- requirements
- db
image: giscube_giscube-admin_requirements
env_file:
- app.env
command: ["/bin/bash", "/app/docker/scripts/wait-for-it.sh", "db:5432", "--", "/bin/bash", "/app/docker-custom/uwsgi/uwsgi.sh"]
volumes:
- .:/app:cached
- app_data:/app_data
- ../giscube-admin-ee-plugins:/giscube-admin-ee-plugins
- static:/static
environment:
- DEBUG=False
- STATIC_ROOT=/static
celery:
depends_on:
- requirements
- redis
- db
image: giscube_giscube-admin_requirements
env_file:
- app.env
command: ["/bin/bash", "/app/docker/scripts/wait-for-it.sh", "db:5432", "--", "/bin/bash", "/app/docker-custom/django/celery_devel.sh"]
volumes:
- .:/app:cached
- app_data:/app_data
- ../giscube-admin-ee-plugins:/giscube-admin-ee-plugins
redis:
image: redis:latest
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
qgisserver:
build:
context: docker-custom/qgisserver/
dockerfile: Dockerfile
image: giscube_admin_qgisserver
volumes:
- app_data:/app_data
imageserver:
build:
context: docker-custom/imageserver/
dockerfile: Dockerfile
environment:
- MS_DEBUGLEVEL=5
volumes:
- app_data:/app_data
nginx:
image: nginx:latest
depends_on:
- django
- uwsgi
- qgisserver
- imageserver
volumes:
- ./docker-custom/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker-custom/nginx/default.conf:/etc/nginx/conf.d/default.conf
- static:/static
ports:
- "8000:8000"
networks:
default:
aliases:
- giscube-admin
volumes:
app_data:
pg_data:
redis_data:
static:
networks:
default:
external:
name: giscube