-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdev.yml
149 lines (140 loc) · 3.67 KB
/
dev.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
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '3.6'
services:
minio:
volumes:
- /data/shipchain/transmission/minio/data:/data
- /data/shipchain/transmission/minio/config:/root/.minio
redis_db:
volumes:
- /data/shipchain/transmission/redis:/data
remove_psql_pid:
image: alpine
command: rm /var/lib/postgresql/10/main/postmaster.pid /var/lib/postgresql/10/main/postmaster.opts
volumes:
- /data/shipchain/transmission/postgresql:/var/lib/postgresql
psql:
depends_on:
- remove_psql_pid
volumes:
- /data/shipchain/transmission/postgresql:/var/lib/postgresql
smtp:
image: elsdoerfer/exim-sender
environment:
- PRIMARY_HOST=smtp.shipchain.io.local
- ALLOWED_HOSTS=*
expose:
- "25"
django_shell: # This is a one-shot command runner service, for manage.py or bash, it dies immediately
image: transmission-django-dev
volumes:
- ../:/app
networks:
default:
aliases:
- transmission-django-shell
portal:
aliases:
- transmission-django-shell
links:
- psql
- redis_db
- minio
- smtp
environment:
- PYTHONDONTWRITEBYTECODE=1
- DJANGO_SETTINGS_MODULE=settings
- ENV
- SECRET_KEY
- SERVICE=django_shell
- REDIS_URL
- ENGINE_RPC_URL=http://engine-rpc:2000
- INTERNAL_URL=http://transmission-runserver:8000
- PROFILES_URL #http://profiles-runserver:8000
- ELASTICSEARCH_URL
- LOG_LEVEL
- AWS_ACCESS_KEY_ID=TEST-DEV-KEY
- AWS_SECRET_ACCESS_KEY=NON-TRIVIAL-SECRETKEY
command: "bash"
entrypoint: []
runserver:
build:
context: ../
target: local
image: transmission-django-dev
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
ports:
- "8000:8000"
networks:
default:
aliases:
- transmission-runserver
portal:
aliases:
- transmission-runserver
links:
- psql
- redis_db
- minio
- smtp
volumes:
- ../:/app
- ./django/pip.cache:/build/pip.volume
environment:
- PYTHONDONTWRITEBYTECODE=1
- DJANGO_SETTINGS_MODULE=settings
- ENV
- SECRET_KEY
- SERVICE=runserver
- REDIS_URL
- ENGINE_RPC_URL=http://engine-rpc:2000
- INTERNAL_URL=http://transmission-runserver:8000
- PROFILES_URL #http://profiles-runserver:8000
- ELASTICSEARCH_URL
- AWS_ACCESS_KEY_ID=TEST-DEV-KEY
- AWS_SECRET_ACCESS_KEY=NON-TRIVIAL-SECRETKEY
- AFTERSHIP_API_KEY
- TOPIC_ARN
- LOG_LEVEL
- FORCE_DEBUG
celery:
image: transmission-django-dev
command: ["watchmedo", "auto-restart", "-d", ".", "-p", "'*.py'", "--", "celery", "worker", "-A", "apps"]
networks:
default:
aliases:
- transmission-celery
portal:
aliases:
- transmission-celery
links:
- psql
- redis_db
- minio
volumes:
- ../:/app
environment:
- PYTHONDONTWRITEBYTECODE=1
- ENV
- SECRET_KEY
- SERVICE=celery
- REDIS_URL
- ENGINE_RPC_URL=http://engine-rpc:2000
- INTERNAL_URL=http://transmission-runserver:8000
- PROFILES_URL #http://profiles-runserver:8000
- ELASTICSEARCH_URL
- AWS_ACCESS_KEY_ID=TEST-DEV-KEY
- AWS_SECRET_ACCESS_KEY=NON-TRIVIAL-SECRETKEY
- LOG_LEVEL
- FORCE_DEBUG
entrypoint: []
flower:
image: mher/flower:latest
command: ["flower", "--broker=redis://:redis_pass@redis_db:6379/1", "--port=8888"]
environment:
- CELERYBROKER_URL=redis://redis:6379/0
- SERVICE=flower
ports:
- 8888:8888
links:
- celery
- redis_db