! Merge branch 'dev'
All checks were successful
Build docker image / build_docker_image (push) Successful in 3m37s
All checks were successful
Build docker image / build_docker_image (push) Successful in 3m37s
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo This is a sample build script, if the workflow cannot be used.
|
||||
echo Please customize the repository address/name for your own.
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# setting constants
|
||||
PACKAGE_REPOSITORY=proxima.goliath.hu/proxima/backend
|
||||
BUILD_TAG=nginx
|
||||
UID=$(id -u)
|
||||
GID=$(id -g)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
clear
|
||||
|
||||
echo This is a sample build script, if the workflow cannot be used.
|
||||
echo Please customize the repository address/name for your own.
|
||||
echo
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
echo Building "${BUILD_TAG}" package ..
|
||||
echo
|
||||
@@ -53,6 +59,5 @@ echo Changing back to build directory...
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
echo Done.
|
||||
|
||||
@@ -110,13 +110,13 @@ docker run \
|
||||
|
||||
#### 6.2 Running with docker compose
|
||||
|
||||
#### 6.2.1 Create docker compose file `docker-compose.yaml`:
|
||||
#### 6.2.1 Create docker compose file [`docker-compose.yaml`](res/docker-compose.yaml):
|
||||
|
||||
```yaml
|
||||
---
|
||||
services:
|
||||
backend:
|
||||
image: git.magrathea.hu/proxima/backend:latest
|
||||
image: proxima.goliath.hu/proxima/backend:latest
|
||||
container_name: backend
|
||||
ports:
|
||||
- "9000:9000"
|
||||
|
||||
11
res/docker-compose.yaml
Normal file
11
res/docker-compose.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
services:
|
||||
backend:
|
||||
image: proxima.goliath.hu/proxima/backend:latest
|
||||
container_name: backend
|
||||
ports:
|
||||
- "9000:9000"
|
||||
volumes:
|
||||
- "./volumes/backend/env/.env.config:/app/Backend/.env.config"
|
||||
- "./volumes/backend/database/:/app/Backend/database/sqlite/"
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user