-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (86 loc) · 2.68 KB
/
docker-compose.yml
File metadata and controls
89 lines (86 loc) · 2.68 KB
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
version: "3.1"
services:
erotic-hub:
container_name: erotic-hub
tty: true
build:
context: .
dockerfile: docker/erotic-hub/Dockerfile
environment:
- DATABASE_URL=${DATABASE_URL}
- REDIS_DATABASE_URL=${REDIS_DATABASE_URL}
- RTMP_SERVER=${RTMP_SERVER}
- NGINX_HLS_URL=${NGINX_HLS_URL}
- STREAM_PATH_PREFIX=${STREAM_PATH_PREFIX}
- SESSION_SECRET_KEY=${SESSION_SECRET_KEY}
- EH_HOST=${EH_HOST}
- EH_PORT=${EH_PORT}
- RUST_LOG=${RUST_LOG}
- SEED_DATA=${SEED_DATA}
- ADMIN_USERNAME=${ADMIN_USERNAME}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- ADMIN_EMAIL=${ADMIN_EMAIL}
ports:
- "8000:8000"
depends_on:
- "db"
- "redis"
- "nginx"
volumes:
- ./docker/erotic-hub/data:/usr/init-data
profiles:
- release
# List of services to run
db:
# PostgreSQL database service
image: postgres # Specify image to build container from, in this case latest postgres (https://hub.docker.com/_/postgres)
restart: always # If container stops, always restart it
environment:
POSTGRES_PASSWORD: example # Set password for postgres (default) user
ports:
- "5432:5432" # Maps the port host:container
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 90s
retries: 5
volumes:
- ./docker/postgres/db-data:/docker-entrypoint-initdb.d
adminer:
# Adminer web UI service
image: adminer # Use latest adminer image (https://hub.docker.com/_/adminer/)
restart: always
profiles:
- dev
ports:
- "8080:8080" # Maps the port host:container
redis:
# Redis database service
image: redis # Use the official Redis image (https://hub.docker.com/_/redis)
restart: always # If container stops, always restart it
ports:
- "6379:6379" # Maps the port host:container
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 30s
timeout: 90s
retries: 5
profiles:
- release
- dev
nginx:
container_name: nginx-rtmp
build:
context: .
dockerfile: ./docker/nginx-rtmp/Dockerfile
restart: always
tty: true
environment:
- NGINX_HLS_PUBLIC_URL=${NGINX_HLS_URL}
- EH_AUTH_ENDPOINT=http://host.docker.internal:8000/stream/auth # URL for authentication Sub-request
ports:
- "1935:1935"
- "8081:80"
profiles:
- release
- dev