-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
59 lines (54 loc) · 1.14 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
version: '3.7'
services:
gymtime_django:
container_name: gymtime_backend
build:
context: .
ports:
- "8000"
depends_on:
- postgres
- redis
- rabbitmq
volumes:
- ./:/app
nginx:
container_name: gymtimex
restart: always
image: nginx:1.20.0
ports:
- "8000:80"
depends_on:
- gymtime_django
volumes:
- ./static/:/static/
- ./media/:/media/
- ./deployment/nginx/default.conf:/etc/nginx/conf.d/default.conf
postgres:
container_name: gymtime_gres
restart: always
image: postgres
ports:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- /home/postgres/gymtime_gres:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.9-management
container_name: gymtime_mq
ports:
- "15672"
- "5672"
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq
restart: always
redis:
image: "redis:6.2-alpine"
container_name: gymtime_redis
ports:
- "6379"
restart: always