File tree 4 files changed +25
-10
lines changed
4 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 1
1
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;'
Original file line number Diff line number Diff line change 1
1
# Переменные JWTProvider BD для локальной отладки
2
2
POSTGRES_PASSWORD = 1
3
3
POSTGRES_USER = root
4
- POSTGRES_DB = garage_db
4
+ POSTGRES_DB = garage_db
5
+ PGDATA = ' /var/lib/postgresql/data/garage'
Original file line number Diff line number Diff line change 1
1
# Переменные JWTProvider BD для локальной отладки
2
2
POSTGRES_PASSWORD = 1
3
3
POSTGRES_USER = root
4
- POSTGRES_DB = users_db
4
+ POSTGRES_DB = users_db
5
+ PGDATA = ' /var/lib/postgresql/data/jwt'
Original file line number Diff line number Diff line change @@ -5,26 +5,34 @@ services:
5
5
- " ${JWT_DB_PORT}:5432"
6
6
env_file :
7
7
- ./JWTProvider/db.env
8
+ volumes :
9
+ - auth-data:/var/lib/postgresql/data/
8
10
networks :
9
- - jwt-auth
11
+ - jwt-backend
10
12
11
13
jwt-api :
12
14
image : daemonsharps/jwt-auth-api:${JWT_API_TAG}
13
15
ports :
14
16
- " ${JWT_API_PORT}:80"
15
17
depends_on :
18
+ - garage-db
16
19
- jwt-db
17
20
env_file :
18
- - ./JWTProvider/api.env
21
+ - ./JWTProvider/api.env
19
22
networks :
20
- - jwt-auth
23
+ - jwt-backend
24
+ - api
21
25
22
26
garage-db :
23
27
image : postgres:${GARAGE_DB_TAG}
24
28
ports :
25
29
- " ${GARAGE_DB_PORT}:5432"
26
30
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/
28
36
networks :
29
37
- garage-backend
30
38
@@ -34,13 +42,18 @@ services:
34
42
- " ${GARAGE_API_PORT}:80"
35
43
depends_on :
36
44
- garage-db
45
+ - jwt-db
37
46
env_file :
38
47
- ./GarageApi/api.env
39
48
networks :
40
49
- garage-backend
41
- - jwt-auth
50
+ - api
42
51
52
+ volumes :
53
+ users-data :
54
+ auth-data :
43
55
44
56
networks :
45
- jwt-auth : {}
46
- garage-backend : {}
57
+ jwt-backend : {}
58
+ garage-backend : {}
59
+ api : {}
You can’t perform that action at this time.
0 commit comments