Fix initial user creating
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgis/postgis:15-3.3
|
||||
@@ -13,6 +11,11 @@ services:
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./backend/migrations:/docker-entrypoint-initdb.d
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U transit_admin -d polotsk_transit"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
networks:
|
||||
- transit-network
|
||||
restart: unless-stopped
|
||||
@@ -24,6 +27,11 @@ services:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
networks:
|
||||
- transit-network
|
||||
restart: unless-stopped
|
||||
@@ -41,11 +49,19 @@ services:
|
||||
API_KEY_SALT: ${API_KEY_SALT:-generate_random_salt}
|
||||
JWT_SECRET: ${JWT_SECRET:-change_me_in_production_use_random_string}
|
||||
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:3001}
|
||||
BOOTSTRAP_ADMIN: ${BOOTSTRAP_ADMIN:-true}
|
||||
BOOTSTRAP_ADMIN_RESET_PASSWORD: ${BOOTSTRAP_ADMIN_RESET_PASSWORD:-false}
|
||||
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin123}
|
||||
ADMIN_FULL_NAME: ${ADMIN_FULL_NAME:-Main administrator}
|
||||
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@polotsk-transit.local}
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- transit-network
|
||||
restart: unless-stopped
|
||||
@@ -58,10 +74,10 @@ services:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_URL: ${API_URL:-http://localhost:3000/api/v1}
|
||||
VITE_API_URL: ${API_URL:-/api/v1}
|
||||
container_name: polotsk-transit-admin
|
||||
environment:
|
||||
VITE_API_URL: ${API_URL:-http://localhost:3000/api/v1}
|
||||
VITE_API_URL: ${API_URL:-/api/v1}
|
||||
ports:
|
||||
- "3001:80"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user