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
|
2024-01-02 12:23:25 +01:00
|
|
|
{% if not enable_central_database %}
|
2023-12-31 11:14:18 +01:00
|
|
|
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:
|
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"
|
2023-12-26 03:13:16 +01:00
|
|
|
|
2024-01-02 21:13:34 +01:00
|
|
|
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
2023-12-26 03:13:16 +01:00
|
|
|
|
2023-12-05 18:41:46 +01:00
|
|
|
volumes:
|
2024-01-02 21:13:34 +01:00
|
|
|
{% include 'templates/docker-database-volume.yml.j2' %}
|
|
|
|
data:
|