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.
29 lines
508 B
29 lines
508 B
3 years ago
|
version: '3'
|
||
|
|
||
|
networks:
|
||
|
springboot:
|
||
|
external: false
|
||
|
|
||
|
services:
|
||
|
springboot:
|
||
|
image: openjdk:8u292-jdk-oraclelinux7
|
||
|
container_name: springboot
|
||
|
environment:
|
||
|
- USER_UID=1000
|
||
|
- USER_GID=1000
|
||
|
restart: always
|
||
|
privileged: true
|
||
|
networks:
|
||
|
- springboot
|
||
|
volumes:
|
||
|
- ./app/app.jar:/app.jar
|
||
|
- ./app/list:/list
|
||
|
- /etc/localtime:/etc/localtime
|
||
|
ports:
|
||
|
- "9770:9090"
|
||
|
command: [
|
||
|
'java',
|
||
|
'-jar',
|
||
|
'app.jar'
|
||
|
]
|