forked from Kovah/LinkAce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
57 lines (51 loc) · 1.32 KB
/
docker-compose.production.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
services:
# --- MariaDB
db:
image: mariadb:10.7
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:/var/lib/mysql
# --- LinkAce Image with PHP
app:
image: linkace/linkace:latest
restart: unless-stopped
depends_on:
- db
volumes:
- ./.env:/app/.env
- ./backups:/app/storage/app/backups
- linkace_app:/app
- linkace_logs:/app/storage/logs
# --- nginx
nginx:
image: bitnami/nginx:1.21
restart: unless-stopped
ports:
- "0.0.0.0:80:8080"
#- "0.0.0.0:443:8443"
depends_on:
- app
volumes:
- linkace_app:/app
# 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
#- /path/to/your/ssl/certificates:/certs:ro
# --- Redis
redis:
image: bitnami/redis:6.2
restart: unless-stopped
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
linkace_app:
linkace_logs:
db:
driver: local