-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 893 Bytes
/
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
version: "3.1"
services:
db:
image: mysql:8.3
container_name: mysql
ports:
- "3306:3306"
env_file: .env
volumes:
- ./mysql/conf.d:/etc/mysql/conf.d
- ./mysql/data:/var/lib/mysql
restart: always
rabbitmq:
image: rabbitmq
env_file: .env
ports:
- "5672:5672"
- "15672:15672"
restart: always
web:
container_name: Whelp-Task
build: .
restart: always
ports:
- "8000:8000"
links:
- db
env_file: .env
depends_on:
- db
celery:
restart: always
build:
context: .
dockerfile: celery.dockerfile
container_name: celery
env_file: .env
command: celery -A app.tasks.tasks worker --loglevel=info
volumes:
- .:/code
links:
- rabbitmq
depends_on:
- rabbitmq
networks:
default:
external:
name: nginx-proxy