forked from LycheeOrg/Lychee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (72 loc) · 1.88 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
77 lines (72 loc) · 1.88 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
lychee_cache:
image: redis:alpine
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD-SHELL", "redis-cli ping || exit 1"]
ports:
- ${REDIS_PORT:-6379}:${REDIS_PORT:-6379}
user: 1026:100
env_file:
- path: ./.env
required: false
environment:
- TZ=${TIMEZONE:-UTC}
networks:
- lychee
volumes:
- cache:/data:rw
restart: on-failure:5
lychee_db:
image: mariadb:10
security_opt:
- no-new-privileges:true
env_file:
- path: ./.env
required: false
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD:-rootpassword}
- MYSQL_DATABASE=${DB_DATABASE:-lychee}
- MYSQL_USER=${DB_USERNAME:-lychee}
- MYSQL_PASSWORD=${DB_PASSWORD:-lychee}
expose:
- 3306
ports:
- 33061:${DB_PORT:-3306}
volumes:
- mysql:/var/lib/mysql
networks:
- lychee
restart: unless-stopped
lychee-dev:
image: lychee-dev:latest
security_opt:
- no-new-privileges:true
ports:
- 90:80
# - 5173:5173
volumes:
# - ./lychee/conf:/conf
# - ./lychee/uploads:/uploads
# - ./lychee/sym:/sym
# - ./lychee/logs:/logs
# - ./lychee/tmp:/lychee-tmp
- ./:/var/www/html/Lychee
env_file:
- path: ./.env
required: false
networks:
- lychee
restart: unless-stopped
depends_on:
- lychee_db
networks:
lychee:
volumes:
mysql:
name: lychee_prod_mysql
driver: local
cache:
name: lychee_prod_redis
driver: local