Skip to content

Commit 64ebfea

Browse files
committed
Static service refactored to support different implementations
1 parent 5ba5b16 commit 64ebfea

32 files changed

+3230
-275
lines changed

.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ POSTGRES_USER=postgres
1212
POSTGRES_PASSWORD=postgres
1313
POSTGRES_DB=vrt_db_dev
1414

15+
# static
16+
STATIC_SERVICE=hdd # hdd | s3 - hdd as default if not provided
17+
18+
# AWS_ACCESS_KEY_ID=
19+
# AWS_SECRET_ACCESS_KEY=
20+
# AWS_REGION=
21+
# AWS_S3_BUCKET_NAME=
22+
1523
# optional
1624
#HTTPS_KEY_PATH='./secrets/ssl.key'
1725
#HTTPS_CERT_PATH='./secrets/ssl.cert'

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"**/.git/objects/**": true,
44
"**/.git/subtree-cache/**": true,
55
"**/.hg/store/**": true
6-
}
6+
},
7+
"jest.runMode":"on-demand"
78
}

docker-compose.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
services:
2-
api:
3-
container_name: vrt_api
4-
build:
5-
context: .
6-
dockerfile: Dockerfile
7-
environment:
8-
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
9-
JWT_SECRET: ${JWT_SECRET}
10-
JWT_LIFE_TIME: ${JWT_LIFE_TIME}
11-
BODY_PARSER_JSON_LIMIT: ${BODY_PARSER_JSON_LIMIT}
12-
APP_FRONTEND_URL: ${APP_FRONTEND_URL}
13-
ports:
14-
- "${APP_PORT}:3000"
15-
expose:
16-
- "${APP_PORT}"
17-
depends_on:
18-
postgres:
19-
condition: service_healthy
20-
migration:
21-
container_name: vrt_migration
22-
build:
23-
context: prisma
24-
dockerfile: Dockerfile
25-
environment:
26-
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
27-
depends_on:
28-
postgres:
29-
condition: service_healthy
2+
# api:
3+
# container_name: vrt_api
4+
# build:
5+
# context: .
6+
# dockerfile: Dockerfile
7+
# environment:
8+
# DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
9+
# JWT_SECRET: ${JWT_SECRET}
10+
# JWT_LIFE_TIME: ${JWT_LIFE_TIME}
11+
# BODY_PARSER_JSON_LIMIT: ${BODY_PARSER_JSON_LIMIT}
12+
# APP_FRONTEND_URL: ${APP_FRONTEND_URL}
13+
# ports:
14+
# - "${APP_PORT}:3000"
15+
# expose:
16+
# - "${APP_PORT}"
17+
# depends_on:
18+
# postgres:
19+
# condition: service_healthy
20+
# migration:
21+
# container_name: vrt_migration
22+
# build:
23+
# context: prisma
24+
# dockerfile: Dockerfile
25+
# environment:
26+
# DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
27+
# depends_on:
28+
# postgres:
29+
# condition: service_healthy
3030
postgres:
3131
container_name: postgres
3232
image: postgres:15.3-alpine3.18
@@ -47,19 +47,19 @@ services:
4747
timeout: 120s
4848
retries: 10
4949
# Available at http://localhost:5050
50-
# pgadmin:
51-
# container_name: pgadmin4
52-
# # https://hub.docker.com/r/dpage/pgadmin4
53-
# # https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_7_4.html
54-
# image: dpage/pgadmin4:7.4
55-
# restart: always
56-
# environment:
57-
# PGADMIN_DEFAULT_EMAIL: [email protected]
58-
# PGADMIN_DEFAULT_PASSWORD: root
59-
# ports:
60-
# - "5050:80"
61-
# depends_on:
62-
# postgres:
63-
# condition: service_healthy
50+
pgadmin:
51+
container_name: pgadmin4
52+
# https://hub.docker.com/r/dpage/pgadmin4
53+
# https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_7_4.html
54+
image: dpage/pgadmin4:7.4
55+
restart: always
56+
environment:
57+
PGADMIN_DEFAULT_EMAIL: [email protected]
58+
PGADMIN_DEFAULT_PASSWORD: root
59+
ports:
60+
- "5050:80"
61+
depends_on:
62+
postgres:
63+
condition: service_healthy
6464
volumes:
6565
postgres:

0 commit comments

Comments
 (0)