forked from labfunctions/labfunctions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
69 lines (68 loc) · 1.48 KB
/
docker-compose.yaml
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
version: "3.5"
volumes:
pgdata:
labsecrets:
labstore:
services:
postgres:
image: postgres:14-alpine
env_file: .env.docker
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- lab
redis:
image: redis:6-alpine
ports:
- 127.0.0.1:6379:6379
networks:
- lab
registry:
image: registry:2
ports:
- 127.0.0.1:5000:5000
# fileserver:
# image: nuxion/fileserver
# volumes:
# - ./fileserver.conf:/etc/nginx/nginx.conf:ro
# ports:
# - 4444:4444
# networks:
# - lab
control:
image: nuxion/labfunctions:0.10.0-alpha.0
volumes:
- labsecrets:/secrets
- labstore:/labstore
- ${PWD}/cluster.example.yaml:/app/cluster.example.yaml
- ${PWD}/.ssh/:/app/ssh
restart: unless-stopped
env_file: .env.docker
environment:
LF_SERVER: "yes"
command: >
lab web --apps workflows,history,projects,runtimes,clusters -A --workers 1 -L -I
ports:
- 127.0.0.1:8000:8000
networks:
- lab
agent:
image: nuxion/labfunctions:0.10.0-alpha.0
env_file: .env.docker
environment:
LF_SERVER: true
command: >
lab agent run --qnames cpu,build,control -m local/ba/example
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- labsecrets:/secrets
- labstore:/labstore
- ${PWD}/.ssh/:/app/ssh
user: 1089:991
networks:
- lab
networks:
lab: