-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (80 loc) · 2.06 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
version: '3.8'
services:
icecast:
image: moul/icecast
container_name: icecast-server
ports:
- "8000:8000" # Expose Icecast on port 8000
volumes:
- ./icecast/icecast.xml:/etc/icecast.xml # Custom Icecast configuration
networks:
media-network:
ipv4_address: 192.168.100.2
restart: unless-stopped
obplayer:
build:
context: ./obplayer # Build using Dockerfile in obplayer directory
container_name: ob-player
ports:
- "23233:23233" # Expose obplayer admin interface
- "23456:23456"
networks:
media-network:
ipv4_address: 192.168.100.3
restart: unless-stopped
depends_on:
- icecast # Start Icecast before obplayer
mysql-db:
container_name: mysql-db
restart: always
build:
context: ./mysql
args:
REPOSITORY: ${REPOSITORY}
BRANCH: ${BRANCH}
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
networks:
media-network:
ipv4_address: 192.168.100.4
ob-server:
restart: always
container_name: ob-server
depends_on:
- mysql-db # Start mysql-db before observer
build:
context: ./observer
args:
USER: ${USER}
OBCONF_PASS: ${OBCONF_PASS}
OBCONF_EMAIL: ${OBCONF_EMAIL}
MYSQL_PASS: ${MYSQL_PASS}
OB_DB_HOST: ${OB_DB_HOST}
OB_DB_PASS: ${OB_DB_PASS}
OB_DB_NAME: ${OB_DB_NAME}
OBCONF_URL: ${OBCONF_URL}
OBCONF_SALT: ${OBCONF_SALT}
OB_UPDATES_USER: ${OB_UPDATES_USER}
OB_UPDATES_PW: ${OB_UPDATES_PW}
REPOSITORY: ${REPOSITORY}
BRANCH: ${BRANCH}
MODULE_NAMES: ${MODULE_NAMES}
MODULE_REPOSITORIES: ${MODULE_REPOSITORIES}
volumes:
- ob-server-home:/home
ports:
- "8080:80"
networks:
media-network:
ipv4_address: 192.168.100.5
volumes:
mysql-data:
ob-server-home:
networks:
media-network:
driver: bridge
ipam:
config:
- subnet: 192.168.100.0/24