forked from jameynakama/celeryman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (118 loc) · 2.73 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
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
# This file is automatically created by the `regen` command.
# To make changes please edit the `SERVICE_FEATURES` setting.
# See https://devdocs.platform-dev.gcp.oreilly.com/chassis/features.html#service-features-setting
networks:
default:
name: celeryman
platform:
external: true
services:
celery:
build:
context: .
dockerfile: Dockerfile
command: /orm/chassis/start.py celery --queues=celery
depends_on:
- database
- redis
env_file: env.local
networks:
default: {}
platform: {}
volumes:
- ./:/orm/service:consistent
celerybeat:
build:
context: .
dockerfile: Dockerfile
command: /orm/chassis/start.py celerybeat
depends_on:
- database
- redis
env_file: env.local
networks:
default: {}
volumes:
- ./:/orm/service:consistent
database:
environment:
POSTGRES_DB: celeryman
POSTGRES_PASSWORD: password
POSTGRES_USER: celeryman
image: postgres:9.6.15
networks:
default: {}
volumes:
- data:/var/lib/postgresql/data
dredd:
build:
context: .
dockerfile: Dockerfile.dredd
command: /orm/service/docs/celeryman.apib http://localhost:8000/ --sorted --server='python
/orm/manage.py start_dredd_server' --server-wait=10 --hooks-worker-connect-timeout=10000
--hooks-worker-timeout=30000 --language=python --hooks-worker-after-connect-wait=2000
--hookfiles=/orm/chassis/docs/chassis_hooks.py
depends_on:
- database
env_file: env.local
environment:
DB_TEST_NAME: dredd_celeryman
REDIS_CACHE_DB: 13
networks:
default: {}
volumes:
- ./:/orm/dredd
- ./:/orm/service:consistent
manage:
build:
context: .
dockerfile: Dockerfile
command: shell_plus
depends_on:
- database
entrypoint: /usr/local/bin/python /orm/manage.py
env_file: env.local
networks:
default: {}
platform: {}
volumes:
- ~/.chassis:/root/.chassis
- ./:/orm/service:consistent
redis:
image: redis:3.2
networks:
default: {}
tests:
build:
context: .
dockerfile: Dockerfile
command: /orm/chassis/core/tests/service/ /orm/service/
depends_on:
- database
entrypoint: /usr/local/bin/py.test
env_file: env.tests
networks:
default: {}
restart: 'no'
volumes:
- ./:/orm/service:consistent
web:
build:
context: .
dockerfile: Dockerfile
command: python /orm/manage.py runserver 0.0.0.0:8247
depends_on:
- database
env_file: env.local
networks:
default: {}
platform:
aliases:
- celeryman
ports:
- 8247:8247
volumes:
- ./:/orm/service:consistent
version: '2.1'
volumes:
data: {}