forked from sir-go/iptv-playlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
50 lines (46 loc) · 1.05 KB
/
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
version: "3.8"
services:
mysql:
image: mysql:8
container_name: iptv-db
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
MYSQL_DATABASE: iptv
MYSQL_USER: db-username
MYSQL_PASSWORD: db-password
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
interval: 10s
timeout: 20s
retries: 10
volumes:
- ./testdata/dump.sql:/docker-entrypoint-initdb.d/dump.sql:ro
expose: ['3306']
# ports:
# - '3306:3306'
networks: {net}
backend:
build:
context: .
container_name: iptv-back
volumes:
- ./config.yml:/opt/config.yml:ro
- ./templates:/opt/templates
expose: ['8081']
# ports:
# - '8081:8081'
depends_on:
- mysql
networks: {net}
nginx:
image: nginx:stable-alpine
container_name: iptv-nginx
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./static:/usr/share/nginx/html/static
expose: ["80"]
ports: ["80:80"]
depends_on:
- backend
networks: {net}
networks: {net}