11services :
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
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
2020 migration :
2121 container_name : vrt_migration
2222 build :
@@ -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
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
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
6464volumes :
6565 postgres:
0 commit comments