-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (55 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
62 lines (55 loc) · 1.05 KB
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'
services:
digital_backend:
build:
context: .
dockerfile: ./compose/app/Dockerfile
env_file:
- ./.env
volumes:
- app_logs:/application/logs
- app_static:/application/static
- app_media:/application/media
links:
- redis
depends_on:
- postgres
- redis
postgres:
image: postgres:11-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_backups:/backups
env_file:
- ./.env
redis:
image: redis:latest
expose:
- "6379"
restart: always
rabbitmq:
image: rabbitmq:3.7-alpine
expose:
- "5672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
nginx:
build:
context: .
dockerfile: ./compose/nginx/Dockerfile
expose:
- "80"
ports:
- "80:80"
volumes:
- app_static:/application/static
- app_media:/application/media
depends_on:
- digital_backend
volumes:
app_static:
app_logs:
app_media:
postgres_data:
postgres_backups:
rabbitmq_data: