feat: Add Docker Compose profiles for auth and payment services

This commit is contained in:
A'zamov Samandar
2025-04-19 15:12:13 +05:00
parent dd0da49eb9
commit 291f31b09b
3 changed files with 39 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ services:
dockerfile: ./docker/Dockerfile.nginx
depends_on:
- auth
profiles:
- auth
auth:
networks:
- lamenu
@@ -56,6 +58,8 @@ services:
depends_on:
- auth-db
- redis
profiles:
- auth
auth-db:
networks:
- lamenu
@@ -67,6 +71,24 @@ services:
POSTGRES_PASSWORD: '2309'
volumes:
- pg_data:/var/lib/postgresql/data
profiles:
- auth
payment:
networks:
- lamenu
build:
context: ./services/payment
dockerfile: ./Dockerfile
restart: always
environment:
- JWT_KEY=${JWT_KEY}
volumes:
- ./services/payment:/code
- pycache:/var/cache/pycache
profiles:
- payment
redis:
networks:
- lamenu