2023-12-05 18:41:46 +01:00
|
|
|
services:
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2023-12-05 18:41:46 +01:00
|
|
|
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
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2023-12-05 18:41:46 +01:00
|
|
|
volumes:
|
2023-12-05 22:17:47 +01:00
|
|
|
- data:/var/www/html
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
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
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2023-12-05 18:41:46 +01:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
|
|
volumes:
|
2023-12-07 15:35:57 +01:00
|
|
|
- "{{docker_compose_instance_confd_directory}}:{{target_mount_conf_d_directory}}:ro"
|
2023-12-05 22:17:47 +01:00
|
|
|
- "data:/var/www/html:ro"
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2023-12-26 03:13:16 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
data:
|
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|