Docker Compose examples

采用java -jar启动
nohup java -jar web-0.0.1-SNAPSHOT.jar --spring.profiles.active=test --server.port=8091 &
 Start using Docker Compose
myweb: ## start of the name of the vessel
    image: web: v826 ## from which mirrored boot
    ports:
        - " 8088: 8091 " 8091 ## web in a container port mapping to the host port 8088
    links:
        - myredis
        
myredis:
    Image: repeat

 

Guess you like

Origin www.cnblogs.com/linjiqin/p/11023662.html