-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.33 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
version: "3.7"
services:
opentogethertube:
image: dyc3/opentogethertube:latest
container_name: opentogethertube
environment:
- PORT=8080
- REDIS_HOST=redis_db
- REDIS_PORT=6379
- FFPROBE_PATH=/usr/bin/ffprobe
# postgres
- POSTGRES_USER=opentogethertube
- POSTGRES_DB=opentogethertube
- POSTGRES_HOST=postgres_db
- POSTGRES_PASSWORD=postgres
- DOCKER=1
volumes:
- ./env:/app/env
ports:
- 8080:8080
links:
- redis_db
- postgres_db
depends_on:
- redis_db
- postgres_db
redis_db:
container_name: opentogethertube_redis
image: redis
healthcheck:
test: "redis-cli ping"
expose:
- 6379
volumes:
- db-data-redis:/data
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
postgres_db:
container_name: opentogethertube_postgres
image: postgres:15-bullseye
environment:
- POSTGRES_DB=opentogethertube
- POSTGRES_USER=opentogethertube
- POSTGRES_PASSWORD=postgres
healthcheck:
test: "pg_isready -U opentogethertube"
expose:
- 5432
volumes:
- db-data-postgres:/var/lib/postgresql/data
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
# shared volume
volumes:
db-data-redis:
driver: local
db-data-postgres:
driver: local