-
Notifications
You must be signed in to change notification settings - Fork 188
/
Copy pathdocker-compose.singlenet.yml
61 lines (61 loc) · 1.4 KB
/
docker-compose.singlenet.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
version: '3'
services:
graphite:
image: graphiteapp/graphite-statsd
grafana:
image: grafana/grafana
ports:
- "3000:3000"
proxy:
build:
context: .
dockerfile: Dockerfile
args:
- GOBASE=${GOPATH}
networks:
- public
- docker_default
environment:
- AIS_NODE_ROLE=proxy
- AIS_NO_DISK_IO=${AIS_NO_DISK_IO}
- PORT=${PORT}
- AIS_PRIMARY_URL=http://${PRIMARY_IP}:${PORT}
- AIS_BACKEND_PROVIDERS=${AIS_BACKEND_PROVIDERS}
env_file:
- /tmp/docker_ais/tmp.env
- /tmp/docker_ais/aws.env
user: ${UID:-1000}
volumes:
- ${GOPATH}/src:${GOPATH}/src
- /tmp/ais/${CLUSTER:-0}:/tmp/ais
target:
build:
context: .
dockerfile: Dockerfile
args:
- GOBASE=${GOPATH}
networks:
- public
- docker_default
environment:
- AIS_NODE_ROLE=target
- AIS_NO_DISK_IO=${AIS_NO_DISK_IO}
- PORT=${PORT}
- AIS_PRIMARY_URL=http://${PRIMARY_IP}:${PORT}
- AIS_BACKEND_PROVIDERS=${AIS_BACKEND_PROVIDERS}
env_file:
- /tmp/docker_ais/tmp.env
- /tmp/docker_ais/aws.env
user: ${UID:-1000}
volumes:
- ${GOPATH}/src:${GOPATH}/src
- /tmp/ais/${CLUSTER:-0}:/tmp/ais
networks:
docker_default:
external: true
public:
driver: bridge
ipam:
driver: default
config:
- subnet: ${PUB_SUBNET:-172.5.0.0/24}