-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 1.26 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
version: '3.1'
services:
rabbit:
build: ./docker/rabbitmq
restart: always
environment:
RABBITMQ_NODENAME: "django@localhost"
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "django"
RABBITMQ_DEFAULT_PASS: "12345"
RABBITMQ_DEFAULT_VHOST: "vfedor"
ports:
- 5674:5672
db:
build:
context: ./docker/db
dockerfile: Dockerfile
restart: always
environment:
POSTGRES_PASSWORD: 12345
volumes:
- ./docker/databases:/var/lib/postgresql/data
- ./docker/db/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- 127.0.0.1:5436:5432
fedor:
build:
context: ./
dockerfile: Dockerfile
restart: always
volumes:
- ./:/home/www/
depends_on:
- db
- rabbit
ports:
- 6080:6080
nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
restart: always
depends_on:
- fedor
- db
ports:
- 8000:80
volumes:
- ./fedor/static/:/static
celery_worker:
restart: always
build: ./docker/celery_worker
command: celery -A fedor worker --beat --scheduler django --loglevel=info
depends_on:
- rabbit
- db
- fedor
volumes:
- ./fedor/.:/home/