-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
50 lines (50 loc) · 1.03 KB
/
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
version: '3'
services:
web:
image: nginx
volumes:
- type: bind
source: "./web/templates"
target: "/etc/nginx/templates"
ports:
- "8000:80"
depends_on:
- frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
args:
- JAR_FILE=./build/libs/backend-1.0.0.jar
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=compose
depends_on:
- db
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- type: bind
source: "./db/conf.d"
target: "/etc/mysql/conf.d"
- type: bind
source: "./db/docker-entrypoint-initdb.d"
target: "/docker-entrypoint-initdb.d"
ports:
- "3306:3306"
adminer:
image: adminer
ports:
- "8081:8080"