-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.yml
77 lines (71 loc) · 1.82 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
version: '3.3'
volumes:
postgres_data: {}
postgres_data_backups: {}
fermentrack_data: {}
fermentrack_logs: {}
fermentrack_backups: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: fermentrack_django
depends_on:
- postgres
- redis
volumes:
- /dev:/dev
- fermentrack_data:/app/data:z
- fermentrack_logs:/app/log:z
- fermentrack_backups:/app/backup_files
- /var/run/dbus:/var/run/dbus
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: ["/start", "--privileged"]
privileged: true
restart: unless-stopped
network_mode: "host"
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: fermentrack_postgres
volumes:
- postgres_data:/var/lib/postgresql/data:Z
- postgres_data_backups:/backups:z
env_file:
- ./.envs/.production/.postgres
restart: unless-stopped
network_mode: "host"
redis:
build:
context: .
dockerfile: ./compose/production/redis/Dockerfile
image: fermentrack_redis
restart: unless-stopped
network_mode: "host"
nginx:
build:
context: .
dockerfile: ./compose/production/nginx/Dockerfile
image: fermentrack_nginx
depends_on:
- django
restart: unless-stopped
volumes:
- fermentrack_data:/data:z
network_mode: "host"
tiltbridge-junior:
image: jdbeeler/tiltbridge-junior:latest
restart: unless-stopped
network_mode: "host"
env_file:
- ./.envs/.production/.tiltbridge-jr
volumes:
- /dev:/dev
- fermentrack_logs:/app/log:z
command: ["/start", "--privileged"]
privileged: true