Skip to content

Commit d1c2792

Browse files
Updating to docker compose
1 parent 28baf08 commit d1c2792

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: nullinside-ui
2+
services:
3+
nullinside-ui:
4+
logging:
5+
driver: loki
6+
options:
7+
loki-url: 'http://192.168.1.4:3100/loki/api/v1/push'
8+
container_name: nullinside-ui
9+
ports:
10+
- 80:80
11+
- 443:443
12+
restart: unless-stopped
13+
image: nullinside-ui:latest

go.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export IP_ADDRESS=$(/sbin/ip -o -4 addr list eno2 | awk '{print $4}' | cut -d/ -f1)
22

33
cp /secrets/certs/* nginx/filesystem/etc/nginx/certs
4-
docker build -t nullinside-ui:latest --build-arg BUILD_ENVIRONMENT=prod --build-arg IP_ADDRESS=$IP_ADDRESS .
5-
docker container stop nullinside-ui
6-
docker container prune -f
7-
docker run -d --name=nullinside-ui -p 80:80 -p 443:443 --restart unless-stopped nullinside-ui:latest
4+
docker compose build -t nullinside-ui:latest --build-arg BUILD_ENVIRONMENT=prod --build-arg IP_ADDRESS=$IP_ADDRESS .
5+
docker compose down
6+
docker compose up -d

0 commit comments

Comments
 (0)