-
Notifications
You must be signed in to change notification settings - Fork 747
/
docker-compose.yml
70 lines (70 loc) · 1.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.4'
services:
fastdfs:
build:
context: .
dockerfile: Dockerfile
image: fastdfs:1.0.0 #docker pull sjqzhang/go-fastdfs
container_name: land-fastdfs
privileged: true
restart: always
network_mode: "host"
#networks:
# - extnetwork
volumes:
- type: bind
source: ./fastdfs/data
target: /usr/local/go-fastdfs/data
ports:
- "8080:8080"
depends_on:
- nginx
nginx:
image: nginx:latest
container_name: land-nginx
privileged: true
restart: always
network_mode: "host"
#networks:
# - extnetwork
ports:
- "9528:80"
volumes:
- type: bind
source: ./nginx/nginx.conf
target: /etc/nginx/nginx.conf
- type: bind
source: ./nginx/static
target: /usr/share/nginx/html
- type: bind
source: ./nginx/log
target: /var/log/nginx
fastdfs-web:
build:
context: ./fastdfs-web
dockerfile: Dockerfile
image: fastdfs-web:1.0.0 #docker pull sjqzhang/go-fastdfs
container_name: land-fastdfs-web
volumes:
- type: bind
source: ./fastdfs-web/db/go-fastdfs.db
target: /db/go-fastdfs.db
- type: bind
source: ./fastdfs-web/logs
target: /logs
privileged: true
restart: always
network_mode: "host"
#networks:
# extnetwork:
# ipv4_address: 172.19.0.20
ports:
- "8099:8088"
depends_on:
- fastdfs
networks:
extnetwork:
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/16