computer-playbook/roles/docker-mybb/templates/docker-compose.yml.j2

40 lines
831 B
Django/Jinja

version: '3.8'
services:
application:
logging:
driver: journald
options:
tag: "mybb_application"
image: mybb/mybb:latest
restart: always
volumes:
- data:/var/www/html
{% if not enable_central_database %}
depends_on:
- database
{% endif %}
server:
logging:
driver: journald
options:
tag: "mybb_server"
image: nginx:mainline
restart: always
ports:
- "127.0.0.1:{{http_port}}:80"
volumes:
- "{{docker_compose_instance_confd_directory}}:{{target_mount_conf_d_directory}}:ro"
- "data:/var/www/html:ro"
{% if not enable_central_database %}
{% include 'templates/docker-mariadb-service.yml.j2' %}
{% endif %}
volumes:
{% if not enable_central_database %}
database:
{% endif %}
data:
networks:
default:
driver: bridge