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