File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed
Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 11services :
22
33 redis :
4- image : " ${REDIS_IMAGE}:${IMAGE_TAG}"
4+ image : " ghcr.io/multi-repo/redis/redis:main"
5+ container_name : redis
56 environment :
67 TZ : " Europe/Omsk"
78 ports :
@@ -17,39 +18,34 @@ services:
1718 cpus : 4.0
1819
1920 postgres :
20- image : " ${PG_IMAGE}:${IMAGE_TAG} "
21+ image : " ghcr.io/multi-repo/postgres/pg:main "
2122 restart : always
2223 shm_size : 128mb
23-
2424 environment :
2525 POSTGRES_USERNAME : ${DATABASE_USERNAME}
26- DATABASE_NAME : ${DATABASE_NAME}
26+ POSTGRES_DB : " ${DATABASE_NAME}"
2727 POSTGRES_PASSWORD : ${DATABASE_PASSWORD}
2828 PGDATA : ${PGDATA}
2929 PGPORT : ${DATABASE_PORT}
3030 TZ : " Europe/Omsk"
31-
3231 ports :
3332 - " ${DATABASE_PORT}:${DATABASE_PORT}"
3433 container_name : " postgres"
3534 volumes :
3635 - pg_data:${PGDATA}
3736 networks :
38- - app
39-
37+ - app
4038 logging :
4139 driver : " json-file"
4240 options :
4341 max-size : " 1m"
4442 max-file : " 3"
45-
4643 healthcheck :
4744 test : ["CMD-SHELL", "pg_isready -U $DATABASE_USERNAME"]
4845 interval : 30s
4946 timeout : 10s
5047 retries : 5
5148 start_period : 5s
52-
5349 mem_limit : 2G
5450 cpus : 4.0
5551
@@ -58,31 +54,28 @@ services:
5854 build :
5955 context : .
6056 dockerfile : Dockerfile
61- image : " ${NESTAPI_IMAGE}:${IMAGE_TAG} "
57+ image : " nestjs-api:latest "
6258 env_file :
6359 - prod.env
6460 environment :
6561 TZ : " Europe/Omsk"
66-
6762 ports :
6863 - " ${BACKEND_PORT}:${BACKEND_PORT}"
6964 depends_on :
70- - postgres
65+ - postgres
66+ - redis
7167 container_name : " nestjs-app"
7268 networks :
7369 - app
74-
7570 restart : always
7671
7772 logging :
7873 driver : " json-file"
7974 options :
8075 max-size : " 1m"
8176 max-file : " 3"
82-
8377 mem_limit : 2G
8478 cpus : 4.0
85-
8679 sysctls :
8780 net.core.somaxconn : 1024
8881 net.ipv4.tcp_syncookies : 1
@@ -98,5 +91,3 @@ networks:
9891 driver : default
9992 config :
10093 - subnet : 192.168.100.0/24
101-
102-
You can’t perform that action at this time.
0 commit comments