54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
services:
|
|
db:
|
|
image: postgres:14.5-alpine
|
|
container_name: akkoma_db
|
|
restart: unless-stopped
|
|
networks:
|
|
- backend
|
|
env_file: .env-db
|
|
environment:
|
|
POSTGRES_USER: akkoma
|
|
POSTGRES_DB: akkoma
|
|
# POSTGRES_PASSWORD:
|
|
volumes:
|
|
- /var/docker/akkoma/postgres:/var/lib/postgresql/data
|
|
configs:
|
|
- source: postgresql
|
|
target: /etc/postgres/postgresql.conf
|
|
mode: 0400
|
|
|
|
web:
|
|
image: docker.fanyx.xyz/akkoma:stable-2023-02
|
|
container_name: akkoma_web
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- traefik_proxy
|
|
- backend
|
|
volumes:
|
|
- /srv/docker/akkoma/akkoma:/opt/akkoma
|
|
- /var/docker/akkoma/akkoma/uploads:/opt/akkoma/uploads
|
|
- /var/docker/akkoma/akkoma/static:/opt/akkoma/instance/static
|
|
configs:
|
|
- source: akkoma
|
|
target: /opt/akkoma/config/prod.secret.exs
|
|
mode: 0400
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.http.routers.akkoma.entrypoints: "https"
|
|
traefik.http.routers.akkoma.rule: "Host(`pl.fanyx.xyz`)"
|
|
traefik.docker.network: "traefik_proxy"
|
|
|
|
networks:
|
|
traefik_proxy:
|
|
name: traefik_proxy
|
|
backend:
|
|
driver: bridge
|
|
|
|
configs:
|
|
postgresql:
|
|
file: /srv/docker/akkoma/postgresql.conf
|
|
akkoma:
|
|
file: /srv/docker/akkoma/secret.exs
|