mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-01-17 21:28:30 +01:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
# --- MariaDB
|
|
db:
|
|
image: mariadb:10.5
|
|
restart: unless-stopped
|
|
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
|
|
- MYSQL_USER=${DB_USERNAME}
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
- MYSQL_DATABASE=${DB_DATABASE}
|
|
volumes:
|
|
- db:/bitnami
|
|
|
|
# --- LinkAce Image with PHP 7.4 and nginx
|
|
app:
|
|
image: linkace/linkace:php-nginx
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- "0.0.0.0:80:8080"
|
|
#- "0.0.0.0:443:8443"
|
|
volumes:
|
|
- ./.env:/app/.env
|
|
- ./nginx-simple.conf:/opt/docker/etc/nginx/conf.d/linkace.conf:ro
|
|
- linkace_logs:/app/storage/logs
|
|
# Remove the hash of the following line if you want to use local backups
|
|
#- ./backups:/app/storage/app/backups
|
|
# Remove the hash of the following line if you are using HTTPS
|
|
#- /path/to/your/ssl/certificates:/opt/docker/etc/nginx/ssl
|
|
|
|
volumes:
|
|
linkace_logs:
|
|
db:
|
|
driver: local
|