mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-13 11:26:22 -07:00
42 lines
979 B
YAML
42 lines
979 B
YAML
services:
|
|
gochan:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
args:
|
|
- GOCHAN_PORT=80
|
|
- GOCHAN_SITE_HOST=127.0.0.1
|
|
- GOCHAN_DB_TYPE=postgres
|
|
- GOCHAN_DB_HOST=gochan-postgres:5432
|
|
container_name: gochan-server
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./volumes/gochan/log:/var/log/gochan
|
|
- ./volumes/gochan/www:/var/www/gochan
|
|
- ./volumes/gochan/config:/etc/gochan
|
|
networks:
|
|
- gochan-bridge
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:16-alpine3.19
|
|
container_name: gochan-postgres
|
|
tty: true
|
|
expose:
|
|
- "5432"
|
|
networks:
|
|
- gochan-bridge
|
|
environment:
|
|
- POSTGRES_DB=gochan
|
|
- POSTGRES_USER=gochan
|
|
- POSTGRES_PASSWORD=gochan
|
|
volumes:
|
|
- ./volumes/postgres/data:/var/lib/postgresql/data
|
|
# - ./volumes/postgres/socket:/var/run/postgresql
|
|
|
|
networks:
|
|
gochan-bridge:
|
|
name: gochan-bridge
|
|
driver: bridge
|