-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
100 lines (92 loc) · 2.08 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.6'
services:
slack_dj_nginx_proxy:
container_name: ${NGINX_PROXY_CONTAINER_NAME}
build:
dockerfile: Dockerfile
context: ./containers/nginx-proxy
ports:
- '80:80'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- streaming
- frontend
- backend
slack_dj_redis:
container_name: ${REDIS_CONTAINER_NAME}
volumes:
- ./data/redis:/data
image: redis:alpine
networks:
backend:
aliases:
- redis
streaming:
aliases:
- redis
slack_dj_db:
container_name: ${DB_CONTAINER_NAME}
image: mariadb
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./data/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
networks:
backend:
aliases:
- database
slack_dj_icecast:
container_name: ${ICECAST_CONTAINER_NAME}
build:
dockerfile: Dockerfile
context: ./containers/icecast
environment:
- VIRTUAL_HOST=${ICECAST_URL}
- VIRUTAL_PORT=8000
networks:
streaming:
aliases:
- icecast
slack_dj_ices:
container_name: ${ICES_CONTAINER_NAME}
build:
dockerfile: Dockerfile
context: ./containers/ices
volumes:
- ./src/public/tracks:/tracks
depends_on:
- slack_dj_redis
- slack_dj_icecast
networks:
streaming:
aliases:
- ices
slack_dj_backend:
container_name: ${BACKEND_CONTAINER_NAME}
build:
dockerfile: Dockerfile
context: ./
args:
- LOCAL_USER_ID=${LOCAL_USER_ID}
volumes:
- ./:/app
environment:
- VIRTUAL_HOST=${BACKEND_URL}
- VIRTUAL_PORT=8888
- LOCAL_USER_ID=${LOCAL_USER_ID}
networks:
backend:
aliases:
- backend
networks:
streaming:
driver: 'bridge'
frontend:
driver: 'bridge'
backend:
driver: 'bridge'