This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
112 lines (110 loc) · 2.74 KB
/
docker-compose.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
version: "3.8"
services:
web:
build:
context: ./backend
dockerfile: Dockerfile
args:
BRANCH: ${SHIPPER_DEV_TARGET_REF:-master}
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 --capture-output --timeout 360 --log-level debug
volumes:
- media_volume:/home/shipper/web/media
- static_volume:/home/shipper/web/static
- ./dev/ssh/:/home/shipper/ssh
expose:
- 8000
env_file:
- ./dev/.env
depends_on:
- db
- memcached
db:
image: postgres:15.2-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./dev/.env.db
nginx:
image: nginx:latest
volumes:
- ./nginx/:/etc/nginx/conf.d
- ./dev/nginx/.htpasswd:/etc/nginx/.htpasswd
- media_volume:/home/shipper/web/media
- static_volume:/home/shipper/web/static
ports:
- "9202:80"
- "9203:81"
healthcheck:
test: curl --fail http://localhost/api/v1/system/info/ || exit 1
depends_on:
- web
- flower
celery_default:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
args:
BRANCH: ${SHIPPER_DEV_TARGET_REF:-master}
command: celery -A core worker -l info -Q default
volumes:
- media_volume:/home/shipper/web/media
- ./dev/ssh/:/home/shipper/ssh
env_file:
- ./dev/.env
depends_on:
- db
- rabbitmq
- web
celery_mirror_upload_queue:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
args:
BRANCH: ${SHIPPER_DEV_TARGET_REF:-master}
command: celery -A core worker -l info -Q mirror_upload --concurrency=1
volumes:
- media_volume:/home/shipper/web/media
- ./dev/ssh/:/home/shipper/ssh
env_file:
- ./dev/.env
depends_on:
- db
- rabbitmq
- web
celery_beat:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
args:
BRANCH: ${SHIPPER_DEV_TARGET_REF:-master}
command: celery -A core beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- media_volume:/home/shipper/web/media
- ./dev/ssh/:/home/shipper/ssh
env_file:
- ./dev/.env
depends_on:
- db
- rabbitmq
- web
rabbitmq:
image: rabbitmq:3.8.16-alpine
flower:
image: mher/flower:latest
command: celery --broker=pyamqp://rabbitmq:5672/ flower --port=5555 --purge_offline_workers=5
ports:
- 5556:5555
depends_on:
- rabbitmq
memcached:
image: memcached:1.6-alpine
volumes:
postgres_data:
name: shipper_dev_postgres_data
media_volume:
name: shipper_dev_media_volume
static_volume:
name: shipper_dev_static_volume