register works!

This commit is contained in:
2024-03-30 13:34:50 +03:00
parent 191a7b5f30
commit cb6ceae42d
5 changed files with 27 additions and 19 deletions

10
dev.yml
View File

@ -2,6 +2,7 @@ services:
backend:
build:
context: backend
restart: unless-stopped
ports:
- "8000"
env_file:
@ -15,6 +16,7 @@ services:
frontend:
build:
context: frontend
restart: unless-stopped
ports:
- "3000"
env_file:
@ -24,6 +26,7 @@ services:
- ./frontend/app:/app:z
nginx:
image: nginx:1.25.4-alpine
restart: unless-stopped
volumes:
- ./nginx/dev.conf:/etc/nginx/conf.d/default.conf:ro
- ./static:/static
@ -34,14 +37,17 @@ services:
- "80:80"
postgres:
image: postgres:16.2-alpine
restart: always
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- ./postgres_data:/var/lib/postgresql/data/
env_file:
- path: ./env/postgres.env
required: true
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} --user ${POSTGRES_USER}"]
test:
["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} --user $${POSTGRES_USER}"]
interval: 2s
timeout: 2s
retries: 5