-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.base.yml
136 lines (128 loc) · 3.58 KB
/
docker-compose.base.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
132
133
134
135
136
version: '2.2'
services:
db:
build: docker/postgis
restart: unless-stopped
container_name: db4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: db
org.geonode.instance.name: geonode
volumes:
- dbdata:/var/lib/postgresql/data
- dbbackups:/pg_backups
env_file:
- ./scripts/docker/env/${SET_DOCKER_ENV}/db.env
rabbitmq:
build: docker/rabbitmq
restart: unless-stopped
container_name: rabbitmq4${COMPOSE_PROJECT_NAME}
stdin_open: true
tty: true
labels:
org.geonode.component: rabbitmq
org.geonode.instance.name: geonode
org.geonode.deployment.name: ${COMPOSE_PROJECT_NAME}
geoserver:
build: docker/geoserver
restart: unless-stopped
container_name: geoserver4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: geoserver
org.geonode.instance.name: geonode
depends_on:
- db
- data-dir-conf
volumes:
- geoserver-data-dir:/geoserver_data/data
- backup-restore:/backup_restore
env_file:
- ./scripts/docker/env/${SET_DOCKER_ENV}/geoserver.env
django:
restart: unless-stopped
build: docker/geonode
container_name: django4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: django
org.geonode.instance.name: geonode
depends_on:
- db
- rabbitmq
- geoserver
- data-dir-conf
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- backup-restore:/backup_restore
env_file:
- ./scripts/docker/env/${SET_DOCKER_ENV}/django.env
environment:
- IS_CELERY=false
- UWSGI_CMD=uwsgi --ini /usr/src/app/uwsgi.ini
celery:
restart: unless-stopped
build: docker/geonode
container_name: celery4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: celery
org.geonode.instance.name: geonode
depends_on:
- db
- rabbitmq
- geoserver
- data-dir-conf
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- backup-restore:/backup_restore
env_file:
- ./scripts/docker/env/${SET_DOCKER_ENV}/django.env
environment:
- IS_CELERY=true
- CELERY_CMD=celery -A geonode.celery_app:app worker -B -E --statedb=/mnt/volumes/statics/worker.state -s /mnt/volumes/statics/celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log
geonode:
build: docker/nginx
restart: unless-stopped
container_name: nginx4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: nginx
org.geonode.instance.name: geonode
depends_on:
- django
- geoserver
# ports:
# - "80:80"
volumes:
- statics:/mnt/volumes/statics
data-dir-conf:
build: docker/geoserver_data
restart: on-failure
container_name: gsconf4${COMPOSE_PROJECT_NAME}
labels:
org.geonode.component: conf
org.geonode.instance.name: geonode
command: /bin/true
volumes:
- geoserver-data-dir:/geoserver_data/data
volumes:
statics:
name: ${COMPOSE_PROJECT_NAME}-statics
geoserver-data-dir:
name: ${COMPOSE_PROJECT_NAME}-gsdatadir
dbdata:
name: ${COMPOSE_PROJECT_NAME}-dbdata
dbbackups:
name: ${COMPOSE_PROJECT_NAME}-dbbackups
rabbitmq:
name: ${COMPOSE_PROJECT_NAME}-rabbitmq
backup-restore:
name: ${COMPOSE_PROJECT_NAME}-backup-restore