-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-swarm.yaml
46 lines (46 loc) · 1.09 KB
/
docker-swarm.yaml
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
version: '3.7' # Updated version to support newer features
services:
download:
image: frankinaustin/television-download:latest
deploy:
replicas: 2
volumes:
- .:/application
crt:
image: frankinaustin/television-crt:latest
volumes:
- .:/application
deploy:
replicas: 6
redis:
image: redis:latest
ports:
- "6379:6379"
nextjs:
image: frankinaustin/television-nextjs:latest
volumes:
- .:/application
entrypoint: ["npx", "next", "dev"]
haproxy:
image: frankinaustin/television-haproxy:latest
ports:
- "80:80"
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
apache:
image: httpd:2.4
volumes:
- ./media/hls:/usr/local/apache2/htdocs/
environment:
- TZ=UTC
postgres:
image: postgres:latest
ports:
- "5435:5432"
environment:
POSTGRES_DB: television
POSTGRES_USER: television
POSTGRES_PASSWORD: television
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql