add
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -9,7 +9,8 @@ xcuserdata/
|
|||||||
.LSOverride
|
.LSOverride
|
||||||
|
|
||||||
# Icon must end with two \r
|
# Icon must end with two \r
|
||||||
Icon
|
Icon
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
# Thumbnails
|
||||||
._*
|
._*
|
||||||
@@ -509,3 +510,4 @@ dist
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
|
trading_assistant_api/services/shared_data/
|
||||||
@@ -5,18 +5,18 @@ services:
|
|||||||
image: postgres:18.1-alpine
|
image: postgres:18.1-alpine
|
||||||
container_name: api_postgres
|
container_name: api_postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: app
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: app123
|
POSTGRES_PASSWORD: postgres123123
|
||||||
POSTGRES_DB: appdb
|
POSTGRES_DB: postgres
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U app -d appdb"]
|
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- ./shared_data/db/:/var/lib/postgresql/data
|
||||||
- ../services/user/db/schema.sql:/docker-entrypoint-initdb.d/10_user_schema.sql:ro
|
- ../services/user/db/schema.sql:/docker-entrypoint-initdb.d/10_user_schema.sql:ro
|
||||||
|
|
||||||
user:
|
user:
|
||||||
@@ -28,9 +28,9 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
PG_HOST: postgres
|
PG_HOST: postgres
|
||||||
PG_PORT: "5432"
|
PG_PORT: "5432"
|
||||||
PG_USER: app
|
PG_USER: postgres
|
||||||
PG_PASSWORD: app123
|
PG_PASSWORD: postgres123123
|
||||||
PG_DBNAME: appdb
|
PG_DBNAME: postgres
|
||||||
PG_SSLMODE: disable
|
PG_SSLMODE: disable
|
||||||
MIGRATE_ON_START: "0"
|
MIGRATE_ON_START: "0"
|
||||||
PORT: "8080"
|
PORT: "8080"
|
||||||
@@ -43,17 +43,17 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
country:
|
# country:
|
||||||
build:
|
# build:
|
||||||
context: ..
|
# context: ..
|
||||||
dockerfile: services/country/Dockerfile
|
# dockerfile: services/country/Dockerfile
|
||||||
image: country-service:latest
|
# image: country-service:latest
|
||||||
container_name: country_service
|
# container_name: country_service
|
||||||
environment:
|
# environment:
|
||||||
PORT: "8081"
|
# PORT: "8081"
|
||||||
ports:
|
# ports:
|
||||||
- "8081:8081"
|
# - "8081:8081"
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
|||||||
Reference in New Issue
Block a user