-
Notifications
You must be signed in to change notification settings - Fork 153
/
docker-compose.win-demo.yml
101 lines (94 loc) · 2.79 KB
/
docker-compose.win-demo.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3"
services:
backendai-manager:
container_name: backendai-local-manager
build:
context: docker/manager
args:
branch: "main"
networks:
- full
ports:
- 8081:8081
environment:
- BACKEND_DEBUG=yes
- BACKEND_NAMESPACE=local
- BACKEND_ETCD_ADDR=backendai-etcd:2379
- BACKEND_REDIS_ADDR=backendai-redis:6379
- BACKEND_DB_ADDR=backendai-db:5432
- BACKEND_DB_NAME=backend
- BACKEND_DB_USER=postgres
- BACKEND_DB_PASSWORD=develove
- BACKEND_SERVICE_IP=0.0.0.0
- BACKEND_SERVICE_PORT=8081
- BACKEND_ADVERTISED_MANAGER_HOST=backendai-manager
volumes:
- ".\\docker\\manager\\init.sh:/app/init.sh:ro"
- ".\\tmp\\scratches:/tmp/scratches"
- ".\\tmp\\vfolders:/tmp/vfolders"
depends_on:
- backendai-etcd
- backendai-db
- backendai-redis
command: ["sh", "/app/init.sh"]
backendai-agent:
container_name: backendai-local-agent
build:
context: docker/agent
args:
branch: "main"
volumes:
# Allow access to the host Docker server
# WARNING: this is INSECURE in production deployment!
- ".\\tmp\\scratches:/tmp/scratches"
- ".\\tmp\\vfolders:/tmp/vfolders"
networks:
- full
environment:
- BACKEND_DEBUG=yes
- BACKEND_NAMESPACE=local
- BACKEND_ETCD_ADDR=backendai-etcd:2379
- BACKEND_SCRATCH_ROOT=/tmp/scratches
- BACKEND_AGENT_HOST_OVERRIDE=backendai-agent
- BACKEND_KERNEL_HOST_OVERRIDE=host.docker.internal
# Turn on "Expose daemon on tcp://localhost:2375 without TLS" in general settings
- DOCKER_HOST="tcp://host.docker.internal:2375"
depends_on:
- backendai-etcd
- backendai-manager
volumes:
- ".\\tmp\\backend.ai\\postgres-data:/var/lib/postgresql/data:rw"
backendai-db:
container_name: backendai-local-db
image: postgres:9.6.15-alpine
networks:
- full
environment:
- POSTGRES_PASSWORD=develove
- POSTGRES_DB=backend
backendai-redis:
container_name: backendai-local-redis
image: redis:5.0.5-alpine
networks:
- full
backendai-etcd:
container_name: backendai-local-etcd
image: quay.io/coreos/etcd:v3.4.1
volumes:
- ".\\tmp\\etcd-data:/etcd-data:rw"
networks:
- full
command: >
/usr/local/bin/etcd
--name backendai-etcd
--data-dir /etcd-data
--listen-client-urls http://0.0.0.0:2379
--advertise-client-urls http://0.0.0.0:2379
--listen-peer-urls http://0.0.0.0:2380
--initial-advertise-peer-urls http://0.0.0.0:2380
--initial-cluster backendai-etcd=http://0.0.0.0:2380
--initial-cluster-token backendai-etcd-token
--initial-cluster-state new
--auto-compaction-retention 1
networks:
full: