-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (72 loc) · 1.48 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: canchu
services:
mysql:
image: mysql:8
# ports:
# - "3306:3306"
env_file:
- ./services/mysql/docker.env
- ./services/mysql/passwd
volumes:
- type: bind
source: ./services/mysql/sqldb_dump.sql
target: /docker-entrypoint-initdb.d/00_sqldb_dump.sql
read_only: true
- type: bind
source: ./services/mysql/permission.sql
target: /docker-entrypoint-initdb.d/01_permission.sql
read_only: true
- mysql:/var/lib/mysql
networks:
- net
cache:
build:
context: ./services/redis
# ports:
# - "6379:6379"
env_file: ./services/redis/passwd
volumes:
- type: tmpfs
target: /data
networks:
- net
proxy:
image: nginx:mainline-alpine-slim
ports:
- "443:443"
volumes:
- type: bind
source: ./services/nginx/cert
target: /cert
read_only: true
- type: bind
source: ./services/nginx/nginx.conf
target: /etc/nginx/nginx.conf
read_only: true
- type: tmpfs
target: /var/cache/nginx
- type: tmpfs
target: /var/run
- nginxLog:/var/log/nginx
networks:
- net
web:
build: .
# ports:
# - "3000:3000"
init: true
volumes:
- userPicture:/canchu/static/avatar
networks:
- net
depends_on:
- mysql
- cache
- proxy
volumes:
mysql:
nginxLog:
userPicture:
networks:
net:
name: my_network