-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (62 loc) · 1.28 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
version: '3.4'
services:
webapp:
image: django-postgres-celery-template:latest
build:
context: .
dockerfile: ./Dockerfile
ports:
- 8000:8000
env_file:
- path: ./.env
required: true
- path: ./.docker.env
required: false
volumes:
- ./src:/app
nginx:
build: ./nginx
volumes:
- ./src/lfs:/app/lfs
ports:
- 8080:80
depends_on:
- webapp
rabbitmq:
container_name: rabbitmq
hostname: rabbitmq
image: rabbitmq:3-management-alpine
ports:
- 5672:5672
- 15672:15672
expose:
- 5672
restart: always
volumes:
- ./src/lfs:/app/lfs
celery-worker:
image: django-postgres-celery-template:latest
command: celery -A django_postgres worker -l INFO
volumes:
- ./src:/app
env_file:
- path: ./.env
required: true
- path: ./.docker.env
required: false
depends_on:
- rabbitmq
- webapp
celery-beat:
image: django-postgres-celery-template:latest
command: celery -A django_postgres beat -l info
volumes:
- ./src/lfs:/app/lfs
env_file:
- path: ./.env
required: true
- path: ./.docker.env
required: false
depends_on:
- rabbitmq
- webapp