docker/share-server/docker-compose.yml

39 lines
1.0 KiB
YAML
Raw Normal View History

2016-01-05 17:55:07 +08:00
ftp:
image: kennylee26/pureftpd
2016-02-02 23:28:24 +08:00
container_name: "share-pureftpd"
2016-01-05 17:55:07 +08:00
net: "host" # none but net=host, windows user can be work.
# Please create these folders at before.
volumes:
- /home/data/ftp/files:/home/ftpusers
- /home/data/ftp/pure-ftpd:/etc/pure-ftpd
restart: always
environment:
- TZ=Asia/Shanghai
samba:
image: vimagick/samba
2016-02-02 23:28:24 +08:00
container_name: "share-samba"
2016-01-05 17:55:07 +08:00
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
volumes:
2016-02-16 15:07:02 +08:00
# 换成绝对路径
- ${pwd}/smb.conf:/etc/samba/smb.conf
2016-01-05 17:55:07 +08:00
- /home/data/ftp/files/ftp:/share
restart: always
environment:
- TZ=Asia/Shanghai
2016-02-02 23:28:24 +08:00
http:
2016-02-16 15:07:02 +08:00
image: nginx:1.9.8
2016-02-02 23:28:24 +08:00
container_name: "share-http"
ports:
- "8001:80"
volumes:
- /home/data/ftp/files/ftp:/usr/share/nginx/html
2016-02-16 15:07:02 +08:00
# 换成绝对路径
- ${pwd}/nginx.conf:/etc/nginx/nginx.conf
2016-02-02 23:28:24 +08:00
environment:
- TZ=Asia/Shanghai
restart: always