data folders
This commit is contained in:
@@ -26,8 +26,8 @@ services:
|
||||
API_TOKEN_SALT: ${API_TOKEN_SALT}
|
||||
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
||||
volumes:
|
||||
- ./server/public/uploads:/opt/app/public/uploads
|
||||
- ./server/.tmp:/opt/app/.tmp
|
||||
- ../pole-book-data/public/uploads:/opt/app/public/uploads
|
||||
- ../pole-book-data/.tmp:/opt/app/.tmp
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -42,7 +42,7 @@ services:
|
||||
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: pole-strapi-postgres
|
||||
container_name: pole-book-strapi-postgres
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- docker-compose.env
|
||||
@@ -51,7 +51,7 @@ services:
|
||||
POSTGRES_USER: ${DATABASE_USERNAME}
|
||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ../pole-book-data/postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USERNAME} -d ${DATABASE_NAME}"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user