forked from david-pettifor-nd/project-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.54 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
version: '3.0'
services:
django:
image: turbo_django:latest
# restart: always
volumes:
- .:/code/
- static_volume:/opt/services/djangoapp/static
depends_on:
- database1
networks:
- database1_network
- nginx_network
nginx:
# restart: always
image: nginx:1.13
ports:
- 80:80
- 443:443
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- nginx_volume:/usr/share/nginx
- redmine_volume:/redmine
- static_volume:/opt/services/djangoapp/static # <-- bind the static volume
#- media_volume:/opt/services/djangoapp/media # <-- bind the media volume
depends_on:
- redmine
networks:
- nginx_network
redmine:
# restart: always
image: redmine:latest
volumes:
- redmine_volume:/usr
environment:
REDMINE_DB_POSTGRES: database1
REDMINE_DB_DATABASE: 'redmine'
REDMINE_DB_PASSWORD: "Let's go turbo!"
depends_on:
- database1
networks:
- database1_network
- nginx_network
database1:
# restart: always
image: postgres:10
env_file:
- config/db/database1_env
networks:
- database1_network
volumes:
- postgres_volume:/var/lib/postgresql/data
ports:
#- 127.0.0.1:5432:5432
- 5432:5432
networks:
nginx_network:
driver: bridge
database1_network:
driver: bridge
volumes:
postgres_volume:
redmine_volume:
nginx_volume:
static_volume: # <-- declare the static volume
media_volume: # <-- declare the media volume