-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
91 lines (85 loc) · 1.96 KB
/
docker-compose-dev.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.1"
name: code-dev
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev
container_name: "alumni-portal-backend"
user: "1000:1000"
environment:
ENV: dev
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/opt/:Z
ports:
- 8000:8000
depends_on:
- db
db:
image: postgres:14
container_name: "alumni-portal-db"
restart: always
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
expose:
- 5432
volumes:
- alumni-portal-db:/var/lib/postgresql/data
pgadmin:
container_name: "alumni-portal-pgadmin"
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
volumes:
- alumni-portal-pgadmin:/var/lib/pgadmin
rabbit-mq:
image: rabbitmq:3.7-management
restart: always
container_name: "alumni-portal-rabbitmq"
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
ports:
- "5672:5672"
- "15672:15672"
celery:
container_name: "alumni-portal-celery"
build: .
command: celery -A alumniportal worker -l INFO -E -f /opt/logs/celery/celery.logs
volumes:
- .:/opt/
depends_on:
- rabbit-mq
- backend
environment:
- DJANGO_SETTINGS_MODULE=alumniportal.settings
flower:
container_name: "alumni-portal-flower"
build: .
command: celery -A alumniportal flower --port=5555
image: mher/flower:0.9.7
ports:
- 5555:5555
volumes:
- .:/opt/
depends_on:
- backend
- celery
- rabbit-mq
environment:
- DJANGO_SETTINGS_MODULE=alumniportal.settings
volumes:
alumni-portal-backend:
alumni-portal-pgadmin:
alumni-portal-db: