71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
services:
|
|
volume_init:
|
|
image: alpine:latest
|
|
container_name: volume_init
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
mkdir -p /data/i2psnark
|
|
mkdir -p /data/aniworld
|
|
mkdir -p /config/i2psnark
|
|
volumes:
|
|
- data:/data
|
|
- config:/config
|
|
restart: "no"
|
|
|
|
deb_services:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: base
|
|
pull_policy: build
|
|
image: katzenkralle/web_served:latest
|
|
depends_on:
|
|
volume_init:
|
|
condition: service_completed_successfully
|
|
|
|
networks:
|
|
- proxy
|
|
|
|
volumes:
|
|
- type: volume
|
|
source: config
|
|
target: /data/i2psnark_config
|
|
volume:
|
|
nocopy: false
|
|
subpath: i2psnark
|
|
|
|
- type: volume
|
|
source: data
|
|
target: /services/i2psnark/i2psnark
|
|
volume:
|
|
nocopy: false
|
|
subpath: i2psnark
|
|
|
|
- type: volume
|
|
source: data
|
|
target: /data/aniworld_downloads
|
|
volume:
|
|
nocopy: false
|
|
subpath: aniworld
|
|
|
|
labels:
|
|
traefik.enable: true
|
|
traefik.http.routers.i2psnark.service: i2psnark
|
|
traefik.http.routers.i2psnark.rule: Host(`i2psnark.localservices.arpa`)
|
|
traefik.http.services.i2psnark.loadbalancer.server.port: 8002
|
|
traefik.http.routers.aniworld.service: aniworld
|
|
traefik.http.routers.aniworld.rule: Host(`aniworld.localservices.arpa`)
|
|
traefik.http.services.aniworld.loadbalancer.server.port: 3000
|
|
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
name: urmel_proxy_exposed
|
|
|
|
volumes:
|
|
data:
|
|
config:
|