-
Notifications
You must be signed in to change notification settings - Fork 0
/
crane.yml
65 lines (59 loc) · 1.66 KB
/
crane.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
volumes:
workspace:
x-vol: &vols
- "workspace:/workspace"
- "./src:/workspace/src"
- "./cnt/tools:/workspace/tools"
- "./cnt/sshd:/workspace/.ssh"
- "./cnt/vscode-server:/workspace/.vscode-server"
- "./cnt/vscode-server-insiders:/workspace/.vscode-server-insiders"
services:
proxy:
hostname: proxy
image: mitmproxy/mitmproxy
command: "mitmweb --mode reverse:http://srv:80 --set web_debug=true --set web_iface='' --set keep_host_header=true"
ports: [ "3000:8080", "3001:8081" ]
rm: true
mail:
image: djfarrelly/maildev
ports: [ "3025:25", "3002:80" ]
hostname: mail
command: ["--web", "80", "--smtp", "25", "--ip","0.0.0.0"]
rm: true
workspace:
hostname: workspace
image: "hub.ad.mosaiksoftware.de/mosaiksoftware/clearlinux-devbase"
rm: true
interactive: true
tty: true
share-ssh-socket: true
ports: [ "2323:2323" ]
env-file: [tools/env]
volume: *vols
srv:
hostname: srv
image: "mosaiksoftware/alpine-swoole-srv"
rm: true
interactive: false
tty: false
env-file: [tools/env]
entrypoint: /workspace/tools/init
volume: *vols
requires: [mail, proxy]
ide-coder:
hostname: ide-coder
image: "codercom/code-server"
cmd: --allow-http --no-auth
volumes: *vols
ports: [8443:8443]
requires: [srv]
groups:
"ide-coder": ["ide-coder", "srv", "workspace", "mail", "proxy"]
"ide": ["workspace"]
commands:
composer: run srv 'cd /workspace/uvdesk && composer create-project uvdesk/community-skeleton /workspace/app/ --stability dev'
setup: run srv php bin/console uvdesk:configure-helpdesk
accelerated-mounts:
dev:
uid: 1000
gid: 1000