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

40 lines
891 B
Plaintext
Raw Normal View History

2023-12-06 11:36:18 +01:00
version: '3.8'
2023-12-05 18:41:46 +01:00
services:
application:
2023-12-05 22:17:47 +01:00
logging:
driver: journald
2023-12-06 11:36:18 +01:00
options:
tag: "mybb_application"
2023-12-05 18:41:46 +01:00
image: mybb/mybb:latest
restart: always
volumes:
2023-12-05 22:17:47 +01:00
- data:/var/www/html
{% if not ( enable_central_database | lower | bool ) %}
depends_on:
- database
{% endif %}
2023-12-05 18:41:46 +01:00
server:
2023-12-05 22:17:47 +01:00
logging:
driver: journald
2023-12-06 11:36:18 +01:00
options:
tag: "mybb_server"
2023-12-05 18:41:46 +01:00
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"
2023-12-05 22:17:47 +01:00
- "data:/var/www/html:ro"
{% if not ( enable_central_database | lower | bool ) %}
{% include 'templates/docker-mariadb-service.yml.j2' %}
{% endif %}
2023-12-05 18:41:46 +01:00
volumes:
{% if not ( enable_central_database | lower | bool ) %}
2023-12-05 18:41:46 +01:00
database:
{% endif %}
2023-12-05 18:41:46 +01:00
data:
networks:
default:
driver: bridge