-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 896 Bytes
/
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
version: '3.8'
services:
nginx:
restart: always
build:
context: ./nginx
ports:
- 81:81
depends_on:
- react
react:
restart: always
build:
context: ./react
ports:
- 5001:5001
expose:
- 5001
depends_on:
- python
python:
restart: always
build:
context: ./python
ports:
- 5002:5002
- 8765:8765
expose:
- 5002
depends_on:
- mysql
mysql:
restart: unless-stopped
build:
context: ./mysql
ports:
- 3308:3306
environment:
MYSQL_DATABASE: 'jmedu'
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: '1234'
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/log.cnf:/etc/mysql/conf.d/log.cnf:ro
- ./mysql/logs:/var/log/mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci