webgui/compose.yml
Arjan Widlak 9fdb1bfc25 distribution -> deploy (git mv, history kept)
> distributino/docker-compose.yml -> compose.yml in the root, paths in file updated
> Dockerfile -> deploy/webgui/Containerfile
> deploy/webgui/Containerfile now with FROM localhost/webgui-deps
> New: deploy/webgui-deps/Containerfile with all cpan modules (and apt block that was above it)
all modules their own RUN cpanm --notest line
ENV PERL_CPANM_OPT to use cpan-mirror
README.md, CONTEXT.md and .dockerignore updated
--no-cache --force -> --notest (so i can test)
2026-06-30 20:00:40 +00:00

44 lines
1.1 KiB
YAML

# This file is ideal for development and testing.
# --- DO NOT USE FOR PRODUCTION ---
# however, you can use it as a guide to create a proper production environment.
services:
db:
image: docker.io/library/mariadb:latest
container_name: db
environment:
- MYSQL_ROOT_PASSWORD=123qwe
- MYSQL_USER=webgui
- MYSQL_PASSWORD=123qwe
- MYSQL_DATABASE=www_example_com
volumes:
- ./deploy/share/create.sql:/docker-entrypoint-initdb.d/1.sql
ports:
- 3306:3306
webgui:
image: webgui:latest
build:
context: .
dockerfile: deploy/webgui/Containerfile
container_name: webgui
depends_on:
- db
volumes:
- ./:/data/WebGUI
expose:
- "80"
nginx-proxy:
image: docker.io/nginx:latest
container_name: nginx_proxy
depends_on:
- webgui
volumes:
- ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
#TODO: add ssl later
#- "443:443"
# TODO: serve staatic files directly from nginx
#- ./www:/var/www/html:ro