mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-18 05:15:41 +00:00
almost works need to tweak the comments backend slightly
This commit is contained in:
parent
910e4bc86c
commit
daf903ec49
1 changed files with 37 additions and 0 deletions
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
version: "3"
|
||||||
|
# copied from the docker-compose I wrote specifically for the comments backend which was made referencing the invidious docker compose file which was very helpful https://github.com/iv-org/invidious/blob/master/docker-compose.yml
|
||||||
|
services:
|
||||||
|
website:
|
||||||
|
image: ghcr.io/pagwin-fedora/website_frontend:latest-comments
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
depends_on:
|
||||||
|
- comments_backend
|
||||||
|
# need to specifically name it this unless you want to build the docker image in place
|
||||||
|
comments_backend:
|
||||||
|
image: ghcr.io/pagwin-fedora/comments_backend
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
DB_URI: comments-db
|
||||||
|
DB_PORT: 5432
|
||||||
|
DB_USER: kemal
|
||||||
|
DB_PASSWORD: kemal
|
||||||
|
DB_NAME: comments
|
||||||
|
DB_SSL: disable
|
||||||
|
depends_on:
|
||||||
|
- comments-db
|
||||||
|
comments-db:
|
||||||
|
image: docker.io/library/postgres:15
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- postgresdata:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: comments
|
||||||
|
# yes I'm stealing the invidious postgres user
|
||||||
|
POSTGRES_USER: kemal
|
||||||
|
POSTGRES_PASSWORD: kemal
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||||
|
volumes:
|
||||||
|
postgresdata:
|
Loading…
Reference in a new issue