diff --git a/docker-compose.yml b/docker-compose.yml index b59e871..18b6769 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,8 @@ services: condition: service_healthy postgres: condition: service_healthy - # affine_migration: - # condition: service_completed_successfully + affine_migration: + condition: service_completed_successfully volumes: # custom configurations - ${UPLOAD_LOCATION}:/root/.affine/storage @@ -24,25 +24,25 @@ services: - AFFINE_INDEXER_ENABLED=false restart: always - #affine_migration: - # image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable} - # container_name: affine_migration_job - # volumes: - # # custom configurations - # - ${UPLOAD_LOCATION}:/root/.affine/storage - # - ${CONFIG_LOCATION}:/root/.affine/config - # command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js'] - # env_file: - # - .env - # environment: - # - REDIS_SERVER_HOST=redis - # - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} - # - AFFINE_INDEXER_ENABLED=false - # depends_on: - # postgres: - # condition: service_healthy - # redis: - # condition: service_healthy + affine_migration: + image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable} + container_name: affine_migration_job + volumes: + # custom configurations + - ${UPLOAD_LOCATION}:/root/.affine/storage + - ${CONFIG_LOCATION}:/root/.affine/config + command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js'] + env_file: + - .env + environment: + - REDIS_SERVER_HOST=redis + - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} + - AFFINE_INDEXER_ENABLED=false + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy redis: image: redis