-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
43 lines (42 loc) · 2.32 KB
/
Vagrantfile
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
Vagrant.configure("2") do |config|
config.vm.box = "debian/bookworm64"
config.vm.provider :virtualbox do |v|
v.memory = 3 * 1024
end
config.vm.network :forwarded_port, host: 8080, guest: 80
config.vm.network :forwarded_port, host: 4443, guest: 443
config.vm.provision :shell, inline: <<-SHELL
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
adduser vagrant docker
systemctl enable docker.service
docker swarm init
docker network create --driver overlay traefik_net
echo y | docker network rm ingress
sleep 10
docker network create --driver overlay --ingress --subnet=10.255.0.0/16 --gateway=10.255.0.1 ingress
echo "foo" | docker secret create DASHING_AUTH_TOKEN -
echo "foo" | docker secret create TWITTER_ACCESS_TOKEN -
echo "foo" | docker secret create TWITTER_ACCESS_TOKEN_SECRET -
echo "foo" | docker secret create TWITTER_CONSUMER_KEY -
echo "foo" | docker secret create TWITTER_CONSUMER_SECRET -
echo "https://pass@example.net/1" | docker secret create DASHPI_SENTRY_DSN -
echo "foo" | docker secret create INFO_BEAMER_API_KEY -
echo "https://pass@example.net/2" | docker secret create FFTALKS_SENTRY_DSN -
echo "foo" | docker secret create TELEMETE_API_KEY -
echo "https://pass@example.net/3" | docker secret create TELEMETE_SENTRY_DSN -
echo "https://pass@example.net/4" | docker secret create MPD2MQTT_SENTRY_DSN -
echo "https://pass@example.net/4" | docker secret create LABELLO_SENTRY_DSN -
echo "https://pass@example.net/5" | docker secret create METE_SENTRY_DSN -
echo "https://pass@example.net/6" | docker secret create CHAOSPIZZA_SENTRY_DSN -
echo "https://pass@example.net/7" | docker secret create SIAMQTT_SENTRY_DSN -
echo "foo" | docker secret create CHAOSPIZZA_DJANGO_SECRET_KEY -
echo "foo" | docker secret create CF_API_KEY -
echo "admin:traefik:817374111f31cc282162486425ee5e9e" | docker secret create TRAEFIK_DIGEST_AUTH - # admin:admin
cd /vagrant && ./deploy-stacks.sh
SHELL
end