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
|
|
|
|
links:
|
|
|
|
- database
|
|
|
|
volumes:
|
2023-12-05 22:17:47 +01:00
|
|
|
- data:/var/www/html
|
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
|
|
|
links:
|
|
|
|
- application
|
|
|
|
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-05 18:41:46 +01:00
|
|
|
database:
|
2023-12-05 22:17:47 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
2023-12-14 01:34:12 +01:00
|
|
|
image: mariadb
|
|
|
|
restart: always
|
2023-12-05 18:41:46 +01:00
|
|
|
environment:
|
2023-12-14 01:34:12 +01:00
|
|
|
MYSQL_DATABASE: "mybb"
|
|
|
|
MYSQL_USER: "mybb"
|
|
|
|
MYSQL_PASSWORD: "{{mybb_database_password}}"
|
|
|
|
MYSQL_ROOT_PASSWORD: "{{mybb_database_password}}"
|
|
|
|
MARIADB_AUTO_UPGRADE: "1"
|
2023-12-05 18:41:46 +01:00
|
|
|
volumes:
|
2023-12-14 01:34:12 +01:00
|
|
|
- database:/var/lib/mysql
|
2023-12-12 22:36:35 +01:00
|
|
|
healthcheck:
|
2023-12-14 01:34:12 +01:00
|
|
|
test: "/usr/bin/mariadb --user=mybb --password={{mybb_database_password}} --execute \"SHOW DATABASES;\""
|
|
|
|
interval: 3s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 5
|
2023-12-05 18:41:46 +01:00
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
data:
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|