forked from Whitespots-OU/security-requirements-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.25 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
version: "3.3"
services:
nginx:
build: ./nginx/.
restart: always
links:
- back:back
depends_on:
- back
ports:
- 80:80
- 443:443
env_file:
- nginx/.env.docker
volumes:
- ./front/dist/prod:/var/www/front
- media_data:/var/www/media
- static_data:/var/www/static
back:
build: ./back/.
restart: always
links:
- pg:pg
depends_on:
- pg
expose:
- 8000
environment:
- BASE_URL=${BASE_URL}
volumes:
- media_data:/application/src/media
- static_data:/application/src/static
- ./back/project/fixtures:/application/src/project/fixtures
dramatiq:
build: ./back/.
restart: always
command: "run-dramatiq"
links:
- pg:pg
- redis:redis
depends_on:
- pg
- redis
environment:
- BASE_URL=${BASE_URL}
volumes:
- media_data:/application/src/media
- static_data:/application/src/static
pg:
image: postgres:12
restart: always
volumes:
- ./data/pg:/var/lib/postgresql/data
environment:
- POSTGRES_DB=main
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
redis:
image: redis
restart: always
volumes:
media_data:
static_data: