WIP: Switch to NixOS #5
2 changed files with 42 additions and 0 deletions
|
@ -171,6 +171,11 @@ korhonen.cc, *.korhonen.cc {
|
||||||
respond {remote_host}
|
respond {remote_host}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ott host ott.korhonen.cc
|
||||||
|
handle @ott {
|
||||||
|
reverse_proxy opentogethertube:8080
|
||||||
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
respond "404 Not Found" 404
|
respond "404 Not Found" 404
|
||||||
}
|
}
|
||||||
|
|
37
docker/opentogethertube/docker-compose.toml
Normal file
37
docker/opentogethertube/docker-compose.toml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
[services.opentogethertube]
|
||||||
|
image = "dyc3/opentogethertube"
|
||||||
|
container_name = "opentogethertube"
|
||||||
|
restart = "unless-stopped"
|
||||||
|
environment = [
|
||||||
|
"PORT=8080",
|
||||||
|
"REDIS_HOST=redis",
|
||||||
|
"REDIS_PORT=6379",
|
||||||
|
"FFPROBE_PATH=/usr/bin/ffprobe",
|
||||||
|
"DB_MODE=postgres",
|
||||||
|
"POSTGRES_USER=opentogethertube",
|
||||||
|
"POSTGRES_DB=opentogethertube",
|
||||||
|
"POSTGRES_HOST=postgres",
|
||||||
|
"POSTGRES_PASSWORD",
|
||||||
|
"DOCKER=1",
|
||||||
|
"OTT_HOSTNAME=ott.korhonen.cc",
|
||||||
|
"YOUTUBE_API_KEY",
|
||||||
|
"OPENTOGETHERTUBE_API_KEY",
|
||||||
|
"SESSION_SECRET",
|
||||||
|
]
|
||||||
|
ports = ["8080:8080", "3002:3002"]
|
||||||
|
networks = ["default", "postgres", "proxy"]
|
||||||
|
depends_on = ["redis"]
|
||||||
|
|
||||||
|
[services.redis]
|
||||||
|
container_name = "opentogethertube_redis"
|
||||||
|
image = "redis:alpine"
|
||||||
|
restart = "unless-stopped"
|
||||||
|
|
||||||
|
[services.redis.healthcheck]
|
||||||
|
test = "redis-cli ping"
|
||||||
|
|
||||||
|
[networks.postgres]
|
||||||
|
external = true
|
||||||
|
|
||||||
|
[networks.proxy]
|
||||||
|
external = true
|
Loading…
Add table
Add a link
Reference in a new issue