-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (82 loc) · 1.7 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
version: "3.8"
volumes:
local_postgres_data: {}
services:
django: &django
build:
context: .
dockerfile: ./docker/django/Dockerfile
target: dev
cache_from:
- ghcr.io/angellusmortis/boundlexx_django
- ghcr.io/angellusmortis/boundlexx_dev_django
- boundlexx_dev_django
image: boundlexx_dev_django
depends_on:
- postgres
- redis
volumes:
- .:/app
env_file:
- ./.env
command: start
manage:
<<: *django
environment:
- DJANGO_MANAGE=1
command: ""
test:
<<: *django
environment:
- PYTEST=1
command: ""
lint:
<<: *django
depends_on: []
entrypoint: /bin/bash
command: -c "lint-code"
format:
<<: *django
depends_on: []
entrypoint: /bin/bash
command: -c "format-code"
postgres:
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
cache_from:
- ghcr.io/angellusmortis/boundlexx_postgres
- boundlexx_postgres
image: boundlexx_postgres
shm_size: 1g
volumes:
- local_postgres_data:/var/lib/postgresql/data
env_file:
- ./.env
redis:
image: redis:5.0
command: redis-server --appendonly yes
celery:
<<: *django
depends_on:
- redis
- postgres
command: start-celeryworker
environment:
- CELERY_WORKER_QUEUES=default,distance,cache,notify,poll,shop,control
celerybeat:
<<: *django
depends_on:
- redis
- postgres
command: start-celerybeat
huey-consumer:
<<: *django
depends_on:
- redis
command: start-huey-consumer
huey-scheduler:
<<: *django
depends_on:
- redis
command: start-huey-scheduler