-
Notifications
You must be signed in to change notification settings - Fork 0
/
web-test.yml
74 lines (67 loc) · 1.49 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
version: '3'
networks:
local:
internalProxy:
external:
name: internalProxy
services:
django:
&django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: gfbio_dmpt_production_django
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
networks:
- local
- internalProxy
volumes:
- ./web-test-data.json:/app/web-test-data.json
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
command: /ci_start
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: gfbio_dmpt_production_postgres
env_file:
- ./.envs/.production/.postgres
networks:
- local
redis:
image: redis:5.0
networks:
- local
celeryworker:
<<: *django
image: gfbio_dmpt_production_celeryworker
command: /start-celeryworker
networks:
- local
labels:
- foo
celerybeat:
<<: *django
image: gfbio_dmpt_production_celerybeat
command: /start-celerybeat
networks:
- local
labels:
- foo
flower:
<<: *django
image: gfbio_dmpt_production_flower
command: /start-flower
networks:
- local
labels:
- foo