-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yaml
41 lines (41 loc) · 1.03 KB
/
docker-compose.yaml
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
version: '3'
services:
shio-nginx:
container_name: shio-nginx
image: nginx:1.13
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./containers/nginx/conf.d:/etc/nginx/conf.d
shio-mariadb:
container_name: shio-mariadb
build: ./containers/mariadb
restart: always
ports:
- 3306:3306
volumes:
- ./volumes/mariadb/lib:/var/lib/mysql
environment:
MYSQL_DATABASE: shio
MYSQL_ROOT_PASSWORD: shio
MYSQL_USER: shio
MYSQL_PASSWORD: shio
shio:
container_name: shio
build: .
restart: always
ports:
- 2710:2710
volumes:
- ./volumes/shio/store:/app/store
depends_on:
- shio-nginx
- shio-mariadb
environment:
SPRING_DATASOURCE_URL: jdbc:mariadb://shio-mariadb:3306/shio
SPRING_DATASOURCE_USERNAME: shio
SPRING_DATASOURCE_PASSWORD: shio
SPRING_DATASOURCE_DRIVER_CLASS_NAME: org.mariadb.jdbc.Driver
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: org.hibernate.dialect.MySQL5InnoDBDialect