Skip to content

Commit f66f0b9

Browse files
committed
Update docker-compose.yml
1 parent a1ab815 commit f66f0b9

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

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)