2020-02-12 17:08:35 +01:00
|
|
|
version: "3"
|
2019-01-17 10:42:42 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
# --- MariaDB
|
|
|
|
db:
|
2024-04-13 04:03:13 +02:00
|
|
|
image: docker.io/library/mariadb:11.2
|
2020-05-20 14:37:40 +02:00
|
|
|
restart: unless-stopped
|
2024-02-05 21:54:14 +01:00
|
|
|
command: mariadbd --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
|
2019-01-17 10:42:42 +01:00
|
|
|
environment:
|
2021-01-21 09:47:42 +01:00
|
|
|
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
|
|
|
|
- MYSQL_USER=${DB_USERNAME}
|
|
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=${DB_DATABASE}
|
2019-01-17 10:42:42 +01:00
|
|
|
volumes:
|
2021-03-22 22:51:26 +01:00
|
|
|
- db:/var/lib/mysql
|
2019-01-17 10:42:42 +01:00
|
|
|
|
2022-04-03 22:28:38 +02:00
|
|
|
# --- LinkAce Image with PHP
|
2020-09-07 23:14:53 +02:00
|
|
|
app:
|
2024-05-19 23:48:29 +02:00
|
|
|
image: docker.io/linkace/linkace:latest
|
2020-05-20 14:37:40 +02:00
|
|
|
restart: unless-stopped
|
2020-08-31 09:25:29 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2019-01-17 10:42:42 +01:00
|
|
|
volumes:
|
2020-05-20 14:37:40 +02:00
|
|
|
- ./.env:/app/.env
|
2022-09-06 09:27:15 +02:00
|
|
|
- ./backups:/app/storage/app/backups
|
2020-11-19 17:31:55 +01:00
|
|
|
- linkace_app:/app
|
|
|
|
- linkace_logs:/app/storage/logs
|
2019-01-17 10:42:42 +01:00
|
|
|
|
|
|
|
# --- nginx
|
|
|
|
nginx:
|
2024-04-13 04:03:13 +02:00
|
|
|
image: docker.io/bitnami/nginx:1.24
|
2020-05-20 14:37:40 +02:00
|
|
|
restart: unless-stopped
|
2019-01-17 10:42:42 +01:00
|
|
|
ports:
|
2021-03-26 22:23:41 +01:00
|
|
|
- "0.0.0.0:80:8080"
|
|
|
|
#- "0.0.0.0:443:8443"
|
2019-01-17 10:42:42 +01:00
|
|
|
depends_on:
|
2020-09-21 23:28:18 +02:00
|
|
|
- app
|
2019-01-17 10:42:42 +01:00
|
|
|
volumes:
|
|
|
|
- linkace_app:/app
|
2021-03-26 22:23:41 +01:00
|
|
|
# Replace `nginx.conf` with `nginx-ssl.conf` and remove the hash from the following line
|
|
|
|
# if you want to use HTTPS for this container
|
|
|
|
- ./nginx.conf:/opt/bitnami/nginx/conf/server_blocks/linkace.conf:ro
|
2021-03-10 22:35:21 +01:00
|
|
|
#- /path/to/your/ssl/certificates:/certs:ro
|
2019-01-17 10:42:42 +01:00
|
|
|
|
|
|
|
# --- Redis
|
|
|
|
redis:
|
2024-04-13 04:03:13 +02:00
|
|
|
image: docker.io/bitnami/redis:7.2
|
2020-05-20 14:37:40 +02:00
|
|
|
restart: unless-stopped
|
2019-01-17 10:42:42 +01:00
|
|
|
environment:
|
|
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
linkace_app:
|
2020-11-19 17:31:55 +01:00
|
|
|
linkace_logs:
|
2019-01-17 10:42:42 +01:00
|
|
|
db:
|
|
|
|
driver: local
|