52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
version: "3.8"
|
|
services:
|
|
mysql:
|
|
image: mysql
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 1
|
|
MYSQL_DATABASE: gulag
|
|
command: --skip-networking
|
|
volumes:
|
|
- ./source/gulag/ext/db.sql:/docker-entrypoint-initdb.d/db.sql:ro
|
|
- mysql:/var/lib/mysql
|
|
- run:/run
|
|
restart: unless-stopped
|
|
network_mode: none
|
|
gulag:
|
|
build:
|
|
dockerfile: gulag.Dockerfile
|
|
context: source
|
|
volumes:
|
|
- data:/gulag/.data
|
|
- ./config/gulag.py:/gulag/config.py:ro
|
|
- run:/run
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mysql
|
|
network_mode: bridge
|
|
guweb:
|
|
build:
|
|
dockerfile: guweb.Dockerfile
|
|
context: source
|
|
volumes:
|
|
- data:/gulag/.data
|
|
- data:/guweb/.data
|
|
- ./config/guweb.py:/guweb/config.py:ro
|
|
- run:/run
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mysql
|
|
network_mode: bridge
|
|
caddy:
|
|
image: caddy
|
|
volumes:
|
|
- ./config/Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- data:/gulag/.data:ro
|
|
- run:/run
|
|
restart: unless-stopped
|
|
network_mode: bridge
|
|
volumes:
|
|
data: {}
|
|
mysql: {}
|
|
run: {}
|