This repository has been archived on 2022-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
gulag-dockerized/docker-compose.yml
2021-07-28 19:13:08 +00:00

56 lines
1.5 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
image: docker.pkg.github.com/ledlamp/gulag-dockerized/gulag
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
image: docker.pkg.github.com/ledlamp/gulag-dockerized/guweb
volumes:
- data:/gulag/.data
- ./config/guweb.py:/guweb/config.py:ro
- run:/run
restart: unless-stopped
depends_on:
- mysql
network_mode: bridge
nginx:
image: nginx
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/gulag.conf:ro
- data:/gulag/.data:ro
- run:/run
restart: unless-stopped
depends_on:
- gulag
- guweb
network_mode: bridge
volumes:
data: {}
mysql: {}
run: {}