-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 2.27 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.3'
services:
node:
image: node:latest
restart: always
ports:
- "443:443"
volumes:
- /opt/TipocaCity/kamino-frontend/:/opt/kamino
networks:
- tipoca
depends_on:
- api
working_dir: /opt/kamino
command: sh -c 'npm i && npm run -- dev'
api:
image: golang:latest
restart: always
ports:
- "8080:8080"
networks:
- tipoca
# Here you can mount the directory where your Go API code is located
volumes:
- /opt/TipocaCity/cyclone:/opt/cyclone
working_dir: /opt/cyclone
command:
- /bin/bash
- -c
- |
export vcenterpassword='$vcenterpassword'
export vcenterusername='$vcenterusername'
export vcenterurl='$vcenterurl'
export parentresourcepool='$parentresourcepool'
export presettemplateresourcepool='$presettemplateresourcepool'
export targetresourcepool='$targetresourcepool'
export cluster='$cluster'
export inventorylocation='$inventorylocation'
export pfsensepassword='$pfsensepassword'
export templatelocation='$templatelocation'
export datacenter='$datacenter'
dpkg -i ./powershell-deb/packages-microsoft-prod.deb
apt update
apt install powershell ldap-utils -y
pwsh -ExecutionPolicy Unrestricted -f ./pwsh/install/install.ps1
pwsh -ExecutionPolicy Unrestricted -f ./pwsh/install/vsphere-prep.ps1
cp -r ./pwsh/Kamino /root/.local/share/powershell/Modules/
unset vcenterpassword
unset vcenterusername
unset vcenterurl
unset parentresourcepool
unset presettemplateresourcepool
unset targetresourcepool
unset cluster
unset inventorylocation
unset pfsensepassword
unset templatelocation
unset datacenter
go run .
ldap:
image: osixia/openldap:latest
restart: always
ports:
- "389:389"
environment:
LDAP_ORGANISATION: "Kamino Labs"
LDAP_DOMAIN: "kamino.labs"
LDAP_ADMIN_PASSWORD: "$ldapadminpassword"
networks:
- tipoca
# LDAP needs a volume to persist data
volumes:
- ldap_data:/var/lib/ldap
- ldap_slapd:/etc/ldap/slapd.d
networks:
tipoca:
volumes:
ldap_data:
ldap_slapd: