Commit 8fd1fe62 by 丁伟

1、迁移初始提交

parent 07943615
version: '3'
services:
backend:
command: ["java", "-jar", "/app.jar"]
depends_on:
- mysql
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/sfzx_website?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
FILE_UPLOAD_ROOT: /upload/files
image: bqluan/docker-openjdk:8-jre-alpine
ports:
- "30077:8080"
volumes:
- ./sfzx-website-0.0.1-SNAPSHOT.jar:/app.jar
- ./upload/files:/upload/files
networks:
hx_net:
ipv4_address: 172.37.0.3
mysql:
environment:
MYSQL_ROOT_PASSWORD: root
image: itc/mariadb:10.2
volumes:
- ./database:/var/lib/mysql
networks:
hx_net:
ipv4_address: 172.37.0.5
networks:
hx_net:
driver: bridge
ipam:
config:
- subnet: 172.37.0.0/24
\ No newline at end of file
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment