-
Notifications
You must be signed in to change notification settings - Fork 321
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 830 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 830 Bytes
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
version: '3'
services:
web:
build:
context: .
args:
JAR_FILE: build/libs/intranet_app_manager.jar
dockerfile: Dockerfile
container_name: web
networks:
- server
depends_on:
- mysql
ports:
- "8080:8080"
- "8443:443"
mysql:
build:
context: ./mysql
restart: always
container_name: docker_mysql
networks:
- server
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: app
volumes:
- ./mysql/init:/docker-entrypoint-initdb.d/
- ./mysql/sql:/opt/sql
ports:
- '3306:3306'
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
networks:
server:
driver:
bridge