-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (62 loc) · 1.25 KB
/
docker-compose.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3'
services:
download:
depends_on:
- redis
build: download
container_name: download
volumes:
- .:/application
crt:
build: crt
container_name: crt
depends_on:
- redis
#devices:
#- /dev/dri:/dev/dri
volumes:
- .:/application
redis:
container_name: redis
image: redis:latest
ports:
- "6379:6379"
nextjs:
container_name: nextjs
build: nextjs
depends_on:
- redis
volumes:
- .:/application
entrypoint: ["npx", "next", "dev"]
haproxy:
depends_on:
- nextjs
- apache
build: haproxy
container_name: haproxy
ports:
- "8080:8080"
- "80:80"
- "443:443"
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
apache:
image: httpd:2.4
container_name: apache
volumes:
- ./media/hls:/usr/local/apache2/htdocs/
environment:
- TZ=UTC
postgres:
image: postgres:latest
container_name: postgres
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