-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb-test.yml
94 lines (86 loc) · 2.24 KB
/
web-test.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
version: '3'
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: collection_service_production_django
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: >
/bin/sh -c "python /app/manage.py collectstatic --noinput
&& python /app/manage.py migrate
&& python /app/manage.py loaddata /app/collection_service/fixtures/testdata.json
&& /usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app"
networks:
- local
- internalProxy
labels:
- traefik.enable=true
- traefik.http.routers.BRANCH-django.rule=Host(`BRANCH.test.gfbio.dev`)
- traefik.http.routers.BRANCH-django.entrypoints=web
- traefik.http.services.BRANCH-django.loadbalancer.server.port=5000
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: collection_service_production_postgres
env_file:
- ./.envs/.production/.postgres
networks:
- local
redis:
image: redis:6
networks:
- local
celeryworker:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: collection_service_production_celeryworker
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start-celeryworker
networks:
- local
celerybeat:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: collection_service_production_celerybeat
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start-celerybeat
networks:
- local
flower:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: collection_service_production_flower
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start-flower
networks:
- local
networks:
local:
internalProxy:
external:
name: internalProxy