You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
576 B

version: '3'
services:
mysql-server:
image: mysql:latest
container_name: mysql-server
network_mode: host
environment:
- MYSQL_ROOT_PASSWORD=@Aa123456
restart: unless-stopped
redis-server:
image: redis:5.0
container_name: redis-server
network_mode: host
restart: unless-stopped
springboot-server:
build:
context: ..
dockerfile: ./springboot_dockerfile
image: app:latest
container_name: springboot-server
network_mode: host
volumes:
- /root/springboot_data:/app
restart: unless-stopped