Skip to content

Commit 3273df9

Browse files
authored
Merge pull request #10 from DaemonSharps/feature/add_garage
Добавил бек гаража и еще одну БД
2 parents 193fa5d + 0802453 commit 3273df9

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
lines changed

Diff for: GarageSite/GarageApi/api.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
DOTNET_ENVIRONMENT=Development
2-
GARAGE_DB_CONNECTION_STRING='Host=garage-site-development-garage-db-1;Port=4432;Database=garage_db;Username=root;Password=1;'
2+
GARAGE_DB_CONNECTION_STRING='Host=garage-site-development-garage-db-1;Port=5432;Database=garage_db;Username=root;Password=1;'

Diff for: GarageSite/GarageApi/db.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#Переменные JWTProvider BD для локальной отладки
22
POSTGRES_PASSWORD=1
33
POSTGRES_USER=root
4-
POSTGRES_DB=garage_db
4+
POSTGRES_DB=garage_db
5+
PGDATA='/var/lib/postgresql/data/garage'

Diff for: GarageSite/JWTProvider/db.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#Переменные JWTProvider BD для локальной отладки
22
POSTGRES_PASSWORD=1
33
POSTGRES_USER=root
4-
POSTGRES_DB=users_db
4+
POSTGRES_DB=users_db
5+
PGDATA='/var/lib/postgresql/data/jwt'

Diff for: GarageSite/compose.yml

+20-7
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,34 @@ services:
55
- "${JWT_DB_PORT}:5432"
66
env_file:
77
- ./JWTProvider/db.env
8+
volumes:
9+
- auth-data:/var/lib/postgresql/data/
810
networks:
9-
- jwt-auth
11+
- jwt-backend
1012

1113
jwt-api:
1214
image: daemonsharps/jwt-auth-api:${JWT_API_TAG}
1315
ports:
1416
- "${JWT_API_PORT}:80"
1517
depends_on:
18+
- garage-db
1619
- jwt-db
1720
env_file:
18-
- ./JWTProvider/api.env
21+
- ./JWTProvider/api.env
1922
networks:
20-
- jwt-auth
23+
- jwt-backend
24+
- api
2125

2226
garage-db:
2327
image: postgres:${GARAGE_DB_TAG}
2428
ports:
2529
- "${GARAGE_DB_PORT}:5432"
2630
env_file:
27-
- ./GarageApi/db.env
31+
- ./GarageApi/db.env
32+
depends_on:
33+
- jwt-db
34+
volumes:
35+
- users-data:/var/lib/postgresql/data/
2836
networks:
2937
- garage-backend
3038

@@ -34,13 +42,18 @@ services:
3442
- "${GARAGE_API_PORT}:80"
3543
depends_on:
3644
- garage-db
45+
- jwt-db
3746
env_file:
3847
- ./GarageApi/api.env
3948
networks:
4049
- garage-backend
41-
- jwt-auth
50+
- api
4251

52+
volumes:
53+
users-data:
54+
auth-data:
4355

4456
networks:
45-
jwt-auth: {}
46-
garage-backend: {}
57+
jwt-backend: {}
58+
garage-backend: {}
59+
api: {}

0 commit comments

Comments
 (0)