-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
89 lines (80 loc) · 1.54 KB
/
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
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
services:
web3:
container_name: web
build:
context: .
image: luminite:web
ports:
- "8000:8000"
- "8001:8001"
volumes:
- static_data:/app/staticfiles
networks:
- shared_network
env_file:
- ./.env
depends_on:
- db3
db3:
container_name: pgdb
image: postgres:13-alpine3.17
restart: always
environment:
POSTGRES_PASSWORD: postgres
networks:
- shared_network
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: redis:latest
networks:
- shared_network
ports:
- "6379:6379"
nginx:
build: ./nginx
volumes:
- static_data:/app/staticfiles
- media_data:/app/media
ports:
- "80:80"
networks:
- shared_network
depends_on:
- web3
rabbitmq:
image: rabbitmq:3-management
container_name: rabbit
hostname: rabbit
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
- RABBITMQ_DEFAULT_VHOST=/
ports:
- "5682:5672"
- "15682:15672"
networks:
- shared_network
celery:
build:
context: .
dockerfile: celery/Dockerfile
container_name: celery-worker
command: celery -A LuminiteV2 worker -l INFO
env_file:
- ./.env
ports:
- "5555:5555"
networks:
- shared_network
depends_on:
- rabbitmq
- redis
- web3
networks:
shared_network:
driver: bridge
volumes:
static_data:
media_data:
postgres_data: