mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-05-03 03:00:41 -04:00
[backend] added support for activities, health_data, user image and user activity files to import feature [backend] fixed issue on health_data where date on health_data table was set has unique, not allowing two or more users have an entry for the same day [docs] fixed volumes on docker examples and docs based on change made on v0.12.4 [docs] added volume server_images on getting started
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
services:
|
|
endurain:
|
|
container_name: endurain-app
|
|
image: ghcr.io/joaovitoriasilva/endurain:latest
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- /opt/endurain/backend/user_images:/app/backend/user_images # necessary for user image persistence on container image updates
|
|
- /opt/endurain/backend/server_images:/app/backend/server_images # necessary for server image persistence on container image updates
|
|
- /opt/endurain/backend/files:/app/backend/files # necessary for files persistence on container image updates
|
|
- /opt/endurain/backend/logs:/app/backend/logs # log files for the backend
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
# postgres logic
|
|
postgres:
|
|
image: docker.io/postgres:17.5
|
|
container_name: endurain-postgres
|
|
env_file:
|
|
- .env
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U endurain"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- /opt/endurain/postgres:/var/lib/postgresql/data
|
|
restart: unless-stopped |