diff --git a/docker-compose.yml b/docker-compose.yml index c1d7ae4..2a5ed1c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,7 @@ services: args: - NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL:-} container_name: anl-app + user: "${UID:-1000}:${GID:-1000}" restart: unless-stopped ports: - "${APP_PORT:-8080}:8080" @@ -20,14 +21,15 @@ services: - AUTO_MIGRATE=true - ADMIN_TOKEN=${ADMIN_TOKEN:?ADMIN_TOKEN must be set -- see .env.example} volumes: - - anl-db-data:/app/data + - ./volumes/data:/app/data + # - anl-db-data:/app/data healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"] + test: [ "CMD", "curl", "-f", "http://localhost:8080/api/v1/health" ] interval: 15s timeout: 3s retries: 3 start_period: 5s -volumes: - anl-db-data: - name: anl-sqlite-storage +# volumes: +# anl-db-data: +# name: anl-sqlite-storage