new file: api/Dockerfile
new file: api/bin/api.exe new file: api/cmd/main.go new file: api/go.mod new file: api/go.sum new file: api/src/configs/APIserver.go new file: api/src/configs/DBconfig.go new file: api/src/initializers/PGQL_DB.go new file: api/src/initializers/Routing.go new file: api/src/models/Contacts.go new file: api/src/models/Essence.go new file: api/src/models/Point.go new file: api/src/models/authDataStructs.go new file: api/src/models/user.go new file: api/src/rt/admin/users.go new file: api/src/rt/auth/Login.go new file: api/src/rt/auth/Registr.go new file: api/src/rt/auth/authAdminMiddlware.go new file: api/src/rt/auth/authMiddleware.go new file: api/src/rt/auth/auth_test.go new file: api/src/rt/prf/AuthUserMiddleWare.go new file: api/src/rt/prf/profile.go new file: api/src/rt/srch/search.go new file: api/src/storages/psql/psql.go new file: docker-compose.yml Changes not staged for commit: modified: ../.env deleted: ../api/Dockerfile deleted: ../api/Makefile deleted: ../api/bin/api.exe deleted: ../api/cmd/main.go deleted: ../api/go.mod deleted: ../api/go.sum deleted: ../api/src/configs/APIserver.go deleted: ../api/src/configs/DBconfig.go deleted: ../api/src/initializers/PGQL_DB.go deleted: ../api/src/initializers/Routing.go deleted: ../api/src/models/Contacts.go deleted: ../api/src/models/Essence.go deleted: ../api/src/models/Point.go deleted: ../api/src/models/authDataStructs.go deleted: ../api/src/models/user.go deleted: ../api/src/rt/admin/users.go deleted: ../api/src/rt/auth/Login.go deleted: ../api/src/rt/auth/Registr.go deleted: ../api/src/rt/auth/authAdminMiddlware.go deleted: ../api/src/rt/auth/authMiddleware.go deleted: ../api/src/rt/auth/auth_test.go deleted: ../api/src/rt/prf/AuthUserMiddleWare.go deleted: ../api/src/rt/prf/profile.go deleted: ../api/src/rt/srch/search.go deleted: ../api/src/storages/psql/psql.go deleted: ../db/docker-compose.yml modified: ../docker-compose.yaml movve file tino new directo for towo service rest api and d
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
services:
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
container_name: db
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${PGPORT}:${PGPORT}"
|
||||
volumes:
|
||||
- postgres-db:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=${PGUSER}
|
||||
- POSTGRES_PASSWORD=${PGPASSWORD}
|
||||
- POSTGRES_DB=${PGDATABASE}
|
||||
restart: unless-stopped
|
||||
|
||||
api:
|
||||
container_name: api
|
||||
build:
|
||||
context: ./api
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${SERVER_PORT}:${SERVER_PORT}"
|
||||
volumes:
|
||||
- api:/usr/src/app
|
||||
depends_on:
|
||||
- db
|
||||
command: ./bin/api
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
volumes:
|
||||
postgres-db:
|
||||
api:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user