-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
49 lines (47 loc) · 1.26 KB
/
docker-compose.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
version: "3.7"
services:
seafile:
restart: always
build:
context: seafile
target: prod
args:
SERVER_VERSION: ${SERVER_VERSION}
BUILD_METHOD: ${BUILD_METHOD}
image: jojo243/seafile:${SERVER_VERSION}
container_name: seafile_seafile
volumes:
- ./seafile/haiwen:/haiwen/
- ./seafile/seafile/:/data/
depends_on:
- db
env_file: .env
environment:
LC_ALL: C
nginx:
restart: always
image: arm64v8/nginx:alpine
container_name: seafile_nginx
volumes:
- ./nginx/init/:/init/
- ./nginx/conf/:/opt/conf/
- ./seafile/haiwen/:/opt/seafile/
- ./ssl:/opt/ssl:ro
entrypoint: /init/init.sh
command: ["nginx", "-g", "daemon off;"]
ports:
- ${PORT}:${PORT}
env_file: .env
depends_on:
- seafile
db:
restart: always
build:
context: db
args:
- MYSQL_VERSION=${MYSQL_VERSION}
image: jojo243/mysql:${MYSQL_VERSION}
container_name: seafile_db
volumes:
- ./db/data:/db
env_file: .env