-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.47 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
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
mysql:
image: mysql:5.7
container_name: mysql_compose
restart: always
ports:
- 6606:3306
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/conf/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
environment:
MYSQL_ROOT_PASSWORD: "123456"
mongo:
image: mongo:4
container_name: mongo_compose
restart: always
ports:
- 27017:27017
#environment:
# MONGO_INITDB_ROOT_USERNAME: leanote
# MONGO_INITDB_ROOT_PASSWORD: leanote
volumes:
- ./mongo/data:/data/db
nginx:
image: nginx:1.14.0-alpine
container_name: nginx_compose
restart: always
ports:
- 80:80
- 443:443
- 5050:5050
- 4040:4040
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf:/etc/nginx/conf.d
- ./nginx/nginx.pid:/etc/nginx/nginx.pid
- ./nginx/www:/etc/nginx/www
- ./nginx/logs:/etc/nginx/logs
leanote:
image: zuolan/leanote
container_name: leanote_app_compose
restart: always
ports:
- 9000
volumes:
- ./leanote/conf/app.conf:/leanote/conf/app.conf
- ./leanote/dataupload:/leanote/public/upload
links:
- mongo
- nginx
init_leanote_db:
image: mongo:4
links:
- mongo
volumes:
- ./leanote/initdb.sh:/initdb.sh
- ./leanote/mongodb_backup/leanote_install_data:/mongodb_backup/leanote_install_data
- ./leanote/data:/data/db
command: sh /initdb.sh