mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
23 lines
568 B
YAML
23 lines
568 B
YAML
version: '2'
|
|
services:
|
|
html_data:
|
|
image: busybox
|
|
container_name: 'web-data'
|
|
volumes:
|
|
- /usr/share/nginx/html
|
|
git:
|
|
build: .
|
|
container_name: 'web-data-fetch'
|
|
volumes_from:
|
|
- html_data
|
|
restart: always
|
|
serv:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kennylee/nginx:alpine-1.11
|
|
container_name: 'web-server'
|
|
ports:
|
|
- "8088:80"
|
|
volumes_from:
|
|
- html_data
|
|
restart: always
|
|
|