mirror of https://github.com/statping/statping
upgrades
parent
22cc4ca841
commit
8d878e81a1
|
@ -30,7 +30,7 @@ func (u *Checkin) Create() (int64, error) {
|
|||
if uuid == nil {
|
||||
return 0, err
|
||||
}
|
||||
fmt.Println("new checkin: ",uuid)
|
||||
fmt.Println("new checkin: ", uuid)
|
||||
return uuid.(int64), err
|
||||
}
|
||||
|
||||
|
|
|
@ -13,27 +13,28 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- /home/ubuntu/nginx/certs:/etc/nginx/certs:ro
|
||||
- /home/ubuntu/nginx/vhost:/etc/nginx/vhost.d
|
||||
- /home/ubuntu/nginx/html:/usr/share/nginx/html:ro
|
||||
- /home/ubuntu/nginx/dhparam:/etc/nginx/dhparam
|
||||
- ./statup/nginx/certs:/etc/nginx/certs:ro
|
||||
- ./statup/nginx/vhost:/etc/nginx/vhost.d
|
||||
- ./statup/nginx/html:/usr/share/nginx/html:ro
|
||||
- ./statup/nginx/dhparam:/etc/nginx/dhparam
|
||||
environment:
|
||||
DEFAULT_HOST: localhost
|
||||
|
||||
statup:
|
||||
container_name: statup
|
||||
build: https://github.com/hunterlong/statup.git
|
||||
restart: always
|
||||
networks:
|
||||
- internet
|
||||
- database
|
||||
depends_on:
|
||||
- postgres
|
||||
volumes:
|
||||
- /home/ubuntu/statup:/app
|
||||
- ./statup/app:/app
|
||||
environment:
|
||||
VIRTUAL_HOST: localhost
|
||||
VIRTUAL_PORT: 8080
|
||||
DOMAIN: statup.cjx.io
|
||||
DB_CONN: postgres
|
||||
DB_HOST: postgres
|
||||
DB_USER: statup
|
||||
DB_PASS: password123
|
||||
|
@ -48,7 +49,7 @@ services:
|
|||
networks:
|
||||
- database
|
||||
volumes:
|
||||
- /home/ubuntu/postgres:/var/lib/postgresql/data
|
||||
- ./statup/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: password123
|
||||
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