mirror of https://github.com/statping/statping
upgrades
parent
22cc4ca841
commit
8d878e81a1
|
@ -13,27 +13,28 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- /home/ubuntu/nginx/certs:/etc/nginx/certs:ro
|
- ./statup/nginx/certs:/etc/nginx/certs:ro
|
||||||
- /home/ubuntu/nginx/vhost:/etc/nginx/vhost.d
|
- ./statup/nginx/vhost:/etc/nginx/vhost.d
|
||||||
- /home/ubuntu/nginx/html:/usr/share/nginx/html:ro
|
- ./statup/nginx/html:/usr/share/nginx/html:ro
|
||||||
- /home/ubuntu/nginx/dhparam:/etc/nginx/dhparam
|
- ./statup/nginx/dhparam:/etc/nginx/dhparam
|
||||||
environment:
|
environment:
|
||||||
DEFAULT_HOST: localhost
|
DEFAULT_HOST: localhost
|
||||||
|
|
||||||
statup:
|
statup:
|
||||||
container_name: statup
|
container_name: statup
|
||||||
build: https://github.com/hunterlong/statup.git
|
build: https://github.com/hunterlong/statup.git
|
||||||
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- internet
|
- internet
|
||||||
- database
|
- database
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- /home/ubuntu/statup:/app
|
- ./statup/app:/app
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: localhost
|
VIRTUAL_HOST: localhost
|
||||||
VIRTUAL_PORT: 8080
|
VIRTUAL_PORT: 8080
|
||||||
DOMAIN: statup.cjx.io
|
DB_CONN: postgres
|
||||||
DB_HOST: postgres
|
DB_HOST: postgres
|
||||||
DB_USER: statup
|
DB_USER: statup
|
||||||
DB_PASS: password123
|
DB_PASS: password123
|
||||||
|
@ -48,7 +49,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- database
|
- database
|
||||||
volumes:
|
volumes:
|
||||||
- /home/ubuntu/postgres:/var/lib/postgresql/data
|
- ./statup/postgres:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: password123
|
POSTGRES_PASSWORD: password123
|
||||||
POSTGRES_USER: statup
|
POSTGRES_USER: statup
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
curl git \
|
||||||
|
software-properties-common -y
|
||||||
|
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
|
sudo add-apt-repository \
|
||||||
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||||
|
$(lsb_release -cs) \
|
||||||
|
stable"
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install docker-ce -y
|
||||||
|
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
|
||||||
|
sudo chmod +x /usr/local/bin/docker-compose
|
||||||
|
sudo docker-compose --version
|
||||||
|
sudo systemctl enable docker
|
||||||
|
|
||||||
|
git clone https://github.com/hunterlong/statup.git
|
||||||
|
cd statup/servers
|
||||||
|
sudo service docker start
|
||||||
|
sudo docker-compose up -d
|
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
VERSION=v0.18
|
|
||||||
|
|
||||||
wget https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-x64
|
|
||||||
mv statup-linux-x64 /usr/local/bin/statup
|
|
||||||
chmod +x /usr/local/bin/statup
|
|
Loading…
Reference in New Issue