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

46 lines
961 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
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-05 22:17:47 +01:00
- "{{conf_d_server_directory}}:{{conf_d_docker_directory}}:ro"
- "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-06 11:36:18 +01:00
options:
tag: "mybb_database"
2023-12-05 18:41:46 +01:00
environment:
2023-12-06 11:36:18 +01:00
POSTGRES_DB: mybb
POSTGRES_PASSWORD: "{{mybb_database_password}}"
POSTGRES_USER: mybb
image: postgres:14-alpine
2023-12-05 18:41:46 +01:00
volumes:
2023-12-06 11:36:18 +01:00
- ${PWD}/postgres/data:/var/lib/postgresql/data:rw
2023-12-05 18:41:46 +01:00
restart: always
volumes:
database:
data:
networks:
default:
driver: bridge