-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·61 lines (54 loc) · 1.08 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: '2'
services:
api:
container_name: wisnote-api
restart: always
build:
context: ./backend/app
dockerfile: Dockerfile-local
working_dir: /app
volumes:
- ./backend/app:/app
expose:
- "5042"
command: python3 app.py
depends_on:
- nginx
- mysql
app:
container_name: wisnote-app
restart: always
build: ./frontend/app
working_dir: /app
volumes:
- ./frontend/app:/app
expose:
- "8080"
depends_on:
- nginx
nginx:
container_name: wisnote-nginx
image: nginx:1.13
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
mysql:
container_name: wisnote-mysql
image: mysql:5.7
environment:
MYSQL_DATABASE: testdb
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
volumes:
- mysql-data:/var/lib/mysql:cached
- ./mysql/conf:/etc/mysql/conf.d:cached
command: --innodb-use-native-aio=0
volumes:
maven-dependencies:
driver: local
mysql-data:
driver: local