Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vckit docker integration #90

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ docker run -p 3000:80 mock-app:latest
- Docker compose

```bash
docker-compose up
docker-compose up -d
```
36 changes: 26 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
version: '3.8'
services:
mock-app:
build:
context: .
dockerfile: Dockerfile
args:
- CONFIG_FILE=./app-config.json
ports:
- 3000:80

documentation:
build:
context: ./documentation
Expand All @@ -21,4 +12,29 @@ services:
- DOCS_BASE_URL=/
volumes:
- ./documentation:/app
- /app/node_modules
- /app/node_modules

vckit-api:
image: ghcr.io/uncefact/project-vckit:sha-60d583b@sha256:afa777d13512628e4277566a8abf45be43bdd19cdc8cbcc5383ffc00cc0ba912
env_file:
- local.env
ports:
- 3332:3332
depends_on:
- db

db:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=vckit
volumes:
- vckit-data:/var/lib/postgresql/data
restart: always


volumes:
vckit-data:
11 changes: 11 additions & 0 deletions local.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DATABASE_HOST=db
DATABASE_TYPE=postgres
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=vckit
DATABASE_PORT=5432
DATABASE_ENCRYPTION_KEY=29739248cad1bd1a0fc4d9b75cd4d2990de535baf5caadfdf8d8f86664aa830c
PORT=3332
PROTOCOL=http
API_DOMAIN=localhost:3332
API_KEY=test123
Loading