-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
142 lines (130 loc) · 2.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.7"
services:
postgres:
container_name: postgres
image: postgres:11.5
networks:
- main
ports:
- "5434:5432"
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:80"
depends_on:
- "postgres"
networks:
- main
restart: unless-stopped
redis:
image: redis:6.0.9-alpine
volumes:
- redis-data:/data
container_name: redis
networks:
- main
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOST=redis
ports:
- "8085:8081"
networks:
- main
nginx:
container_name: nginx
build:
context: ./nginx
dockerfile: dev/Dockerfile
ports:
- "80:80"
depends_on:
- frontend
- backend
volumes:
- ./nginx/dev/dev.conf:/etc/nginx/nginx.conf:ro
networks:
- main
frontend:
container_name: frontend
build:
context: ./quasar
networks:
- main
ports:
- "8080:8080"
volumes:
- ./quasar:/app/:rw
env_file:
- .env
backend: &backend
container_name: backend
build:
context: ./backend
dockerfile: docker/Dockerfile.dev
command:
- python3
- manage.py
- runserver
- 0.0.0.0:8000
volumes:
- ./backend:/code
networks:
- main
ports:
- "8000:8000"
- "8888:8888"
env_file:
- .env
depends_on:
- postgres
- redis
celery:
<<: *backend
container_name: celery
command:
- python3
- manage.py
- start_celery_local
ports: []
flower:
image: mher/flower:latest
container_name: flower
environment:
- CELERY_BROKER_URL=redis://redis:6379/1
- FLOWER_PORT=5555
ports:
- 5555:5555
networks:
- main
depends_on:
- redis
mailhog:
container_name: mailhog
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
networks:
- main
volumes:
pg-data:
django-static:
redis-data:
pgadmin:
networks:
main:
driver: bridge