-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (60 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
61 lines (60 loc) · 1.54 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
version: '2'
services:
wam:
restart: unless-stopped
image: wam
container_name: wam
command: /bin/bash -c "source activate django && cd /code && gunicorn --bind 0.0.0.0:5000 wam.wsgi:application"
environment:
WAM_CONFIG_PATH: /config/config.cfg
ports:
- "5000:5000" # Adapt this to your needs!
volumes:
- ../config:/config
networks:
- wam_network
depends_on:
- wam_db
- celery
celery:
restart: unless-stopped
build:
context: ./WAM
args:
- WAM_APPS= # Activate wam apps here!
image: wam
container_name: celery
command: /bin/bash -c "source activate django && cd /code && celery -A wam -Q wam_queue worker -l info"
environment:
WAM_CONFIG_PATH: /config/config.cfg
volumes:
- ../config:/config
networks:
- wam_network
wam_db:
build:
context: ./WAM/
dockerfile: Dockerfile.postgis
image: postgis
container_name: wam_db
restart: unless-stopped
environment:
POSTGRES_DB: wam_database
POSTGRES_USER: wam_admin
POSTGRES_PASSWORD: wam_pwd # Change this!
volumes:
- ../django_db:/var/lib/postgresql/data
networks:
- wam_network
rabbitmq:
restart: unless-stopped
image: rabbitmq:latest
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_VHOST: rabbit_vhost # Change this!
RABBITMQ_DEFAULT_USER: rabbit_user # Change this!
RABBITMQ_DEFAULT_PASS: rabbit_pwd # Change this!
networks:
- wam_network
networks:
wam_network: