-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.22 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
version: '3.9'
services:
# database service
db:
image: mariadb:10.7
container_name: db
ports:
- 3306:3306
volumes:
- ~/apps/doscrinium/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: super-secret-pwd
MYSQL_PASSWORD: secret-pwd
MYSQL_USER: doscrinium_user
MYSQL_DATABASE: doscrinium_db
# storage service
storage:
image: minio/minio:latest
container_name: storage
command: server /data --console-address :9001
ports:
- 9000:9000
- 9001:9001
volumes:
- ~/apps/doscrinium/storage:/data
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
backend:
build:
context: ./backend
container_name: backend
ports:
- 8000:8000
- 8080:8080
environment:
SERVER_PORT: 8080
MYSQL_USER: doscrinium_user
MYSQL_PASSWORD: secret-pwd
MINIO_USER: minioadmin
MINIO_PASSWORD: minioadmin
volumes:
- ./backend:/app
command: ./mvnw spring-boot:run -Dspring-boot.run.jvmArguments="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000"
frontend:
build:
context: ./frontend
container_name: frontend
ports:
- 3000:80