feat: Adds some documenation comments

This commit is contained in:
2025-01-27 10:20:33 -05:00
parent f3ffdbf41b
commit a7df4f349f
11 changed files with 78 additions and 3 deletions

View File

@@ -21,7 +21,8 @@ services:
app:
image: hhe-po:latest
build:
context: .
context: ..
dockerfile: ./docker/Dockerfile
environment:
<<: *shared_environment
volumes:
@@ -30,12 +31,20 @@ services:
- '8080:8080'
labels:
- dev.orbstack.domains=po.local
healthcheck:
test: curl --fail -s http://0.0.0.0:8080/health || exit 1
interval: 1m30s
timeout: 10s
retries: 3
deploy:
replicas: 3
# user: '0' # uncomment to run as root for testing purposes even though Dockerfile defines 'vapor' user.
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"]
migrate:
image: hhe-po:latest
build:
context: .
context: ..
dockerfile: ./docker/Dockerfile
environment:
<<: *shared_environment
command: ["migrate", "--yes"]
@@ -46,7 +55,8 @@ services:
revert:
image: hhe-po:latest
build:
context: .
context: ..
dockerfile: ./docker/Dockerfile
environment:
<<: *shared_environment
command: ["migrate", "--revert", "--yes"]