forked from hydroshare/hydroshare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·73 lines (73 loc) · 1.76 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
postgis:
image: mjstealey/postgresql
redis:
image: redis:2.8
rabbitmq:
image: rabbitmq:3.5
hydroshare:
build: .
environment:
POSTGIS_HOST: postgis
POSTGIS_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
POSTGIS_PASSWORD: postgres
POSTGIS_DB: postgres
POSTGIS_USER: postgres
PGPASSWORD: postgres
volumes:
# Use when NOT sharing the entire host hydroshare directory
#- "media:/home/docker/hydroshare/hydroshare/static/media"
# for VM
# Specific to hydro user on the hydrodev Xubuntu VM
- "/home/hydro/hydroshare:/home/docker/hydroshare"
# Specific to hydro user for pycharm debugging on hydrodev Xubuntu VM
# - "/home/hydro/pycharm-debug:/home/docker/pycharm-debug"
ports:
- "1338:22"
- "8000:8000"
links:
- postgis:postgis
- redis:redis
- rabbitmq:rabbitmq
command: /bin/bash init
defaultworker:
build: .
environment:
POSTGIS_HOST: postgis
POSTGIS_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
POSTGIS_PASSWORD: postgres
POSTGIS_DB: postgres
PGPASSWORD: postgres
C_FORCE_ROOT: 1
volumes_from:
- hydroshare
volumes:
- "/var/run/docker.sock:/docker.sock"
links:
- postgis:postgis
- redis:redis
- rabbitmq:rabbitmq
command: celery worker -A hydroshare -E -Q default
dockerworker:
build: .
environment:
POSTGIS_HOST: postgis
POSTGIS_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
POSTGIS_PASSWORD: postgres
POSTGIS_DB: postgres
PGPASSWORD: postgres
C_FORCE_ROOT: 1
volumes_from:
- hydroshare
volumes:
- "/var/run/docker.sock:/docker.sock"
links:
- postgis:postgis
- redis:redis
- rabbitmq:rabbitmq
command: celery worker -A hydroshare -E -Q docker_container_tasks,docker_broadcast_tasks