Actualiser compose.yml
This commit is contained in:
+6
-11
@@ -1,10 +1,5 @@
|
|||||||
name: scanopy
|
name: scanopy
|
||||||
|
|
||||||
x-scanopy-env: &scanopy-env
|
|
||||||
SCANOPY_LOG_LEVEL: ${SCANOPY_LOG_LEVEL:-info}
|
|
||||||
SCANOPY_SERVER_PORT: ${SCANOPY_SERVER_PORT:-60072}
|
|
||||||
SCANOPY_DAEMON_PORT: ${SCANOPY_DAEMON_PORT:-60073}
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
daemon:
|
daemon:
|
||||||
image: ghcr.io/scanopy/scanopy/daemon:latest
|
image: ghcr.io/scanopy/scanopy/daemon:latest
|
||||||
@@ -15,9 +10,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "60073:60073"
|
- "60073:60073"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- daemon.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://localhost:${SCANOPY_DAEMON_PORT:-60073}/api/health || exit 1"]
|
test: ["CMD-SHELL", "curl -f http://localhost:${SCANOPY_DAEMON_PORT}/api/health || exit 1"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 15
|
retries: 15
|
||||||
@@ -29,7 +24,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- pgsql.env
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -46,14 +41,14 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "60072:60072"
|
- "60072:60072"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- server.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
# daemon:
|
daemon:
|
||||||
# condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- scanopy
|
- scanopy
|
||||||
|
|||||||
Reference in New Issue
Block a user