Added user auth
This commit is contained in:
@@ -17,7 +17,15 @@ services:
|
||||
ports:
|
||||
- "${DATABASE_PORT:-5432}:5432"
|
||||
networks:
|
||||
- weather-backend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
redis:
|
||||
image: redis:latest
|
||||
container_name: weather-redis
|
||||
ports:
|
||||
- ${REDIS_PORT:-6379}:6379
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
service:
|
||||
@@ -27,6 +35,8 @@ services:
|
||||
environment:
|
||||
DATABASE_HOST: db
|
||||
DATABASE_PORT: 5432
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
SERVICE_HOST: service
|
||||
SERVICE_PORT: 5000
|
||||
ports:
|
||||
@@ -35,9 +45,10 @@ services:
|
||||
context: .
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
networks:
|
||||
- weather-frontend
|
||||
- weather-backend
|
||||
- frontend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
@@ -45,5 +56,5 @@ volumes:
|
||||
db_logs:
|
||||
|
||||
networks:
|
||||
weather-frontend: {}
|
||||
weather-backend: {}
|
||||
frontend:
|
||||
backend:
|
||||
|
||||
Reference in New Issue
Block a user