-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.debug.yml
123 lines (122 loc) · 2.79 KB
/
docker-compose.debug.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
# docker-compose for debugging with vscode
version: '3'
services:
data.local.org:
extends:
file: ../local-dev.yml
service: data.local.org
ports:
- "22:22"
stdin_open: true
tty: true
postgis:
extends:
file: ../local-dev.yml
service: postgis
rabbitmq:
extends:
file: ../local-dev.yml
service: rabbitmq
solr:
extends:
file: ../local-dev.yml
service: solr
volumes:
- "..:/hydroshare"
- "solr_data_vol:/opt/solr/server/solr"
hydroshare:
build:
context: ..
dockerfile: Dockerfile
container_name: hydroshare
hostname: hydroshare
devices:
- "/dev/fuse"
privileged: true
environment:
POSTGIS_HOST: postgis
POSTGIS_PORT: 5432
POSTGIS_PASSWORD: postgres
POSTGIS_DB: postgres
POSTGIS_USER: postgres
PGPASSWORD: postgres
RABBITMQ_PORT_5672_TCP_ADDR: rabbitmq
SOLR_PORT_8983_TCP_ADDR: solr
SOLR_HOST: solr
TMP: /hs_tmp
POSTGIS_PORT_5432_TCP_ADDR: postgis
HS_PATH: ${PWD}
PYTHONPATH: /hydroshare
DJANGO_SETTINGS_MODULE: hydroshare.settings
volumes:
# hydroshare repository
- "..:/hydroshare"
# shared location for gunicorn.sock between containers
- "temp_vol:/hs_tmp"
# temp directory shared with celery workers
- "share_vol:/shared_tmp"
ports:
- "1338:2022"
- "8000:8000"
- "5678:5678"
links:
- postgis:postgis
- solr:solr
- rabbitmq:rabbitmq
- data.local.org:data.local.org
depends_on:
- postgis
- solr
- rabbitmq
- data.local.org
stdin_open: true
tty: true
command: /bin/bash .vscode/init-hydroshare-debug
defaultworker:
build:
context: ..
dockerfile: Dockerfile
container_name: defaultworker
hostname: defaultworker
environment:
POSTGIS_HOST: postgis
POSTGIS_PORT: 5432
POSTGIS_PASSWORD: postgres
POSTGIS_DB: postgres
PGPASSWORD: postgres
C_FORCE_ROOT: 1
RABBITMQ_PORT_5672_TCP_ADDR: rabbitmq
SOLR_PORT_8983_TCP_ADDR: solr
SOLR_HOST: solr
POSTGIS_PORT_5432_TCP_ADDR: postgis
HS_PATH: ${PWD}
PYTHONPATH: /hydroshare
DJANGO_SETTINGS_MODULE: hydroshare.settings
COLUMNS: 80
ports:
- "5555:5555"
volumes:
- "..:/hydroshare"
links:
- postgis:postgis
- rabbitmq:rabbitmq
- data.local.org:data.local.org
depends_on:
- hydroshare
- postgis
- solr
- rabbitmq
- data.local.org
stdin_open: true
tty: true
command: /bin/bash init-defaultworker
volumes:
idata_iconf_vol:
idata_vault_vol:
idata_pgres_vol:
idata_home_vol:
postgis_data_vol:
solr_data_vol:
temp_vol:
share_vol:
rabbitmq_data_vol: