-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 997 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
web:
build: .
restart: always
environment:
TZ: "Europe/Istanbul"
command: python manage.py runserver 0.0.0.0:8015
networks:
docker_network_custom:
ipv4_address: 172.19.1.1
volumes:
- .:/usr/app/
ports:
- 8015:8015
celery:
build: .
restart: always
environment:
TZ: "Europe/Istanbul"
command: celery -A config worker --loglevel=INFO --concurrency=10 -n worker_dokr2
networks:
docker_network_custom:
ipv4_address: 172.19.1.2
volumes:
- .:/usr/app/
celery-beat:
build: .
restart: always
environment:
TZ: "Europe/Istanbul"
command: celery -A config beat --loglevel=INFO
networks:
docker_network_custom:
ipv4_address: 172.19.1.3
volumes:
- .:/usr/app/
networks:
docker_network_custom:
ipam:
driver: default
config:
- subnet: 172.19.0.0/16