forked from VinokurovVE/tests
Add CLIENT_PORT env
This commit is contained in:
@ -6,5 +6,6 @@ POSTGRES_DB=ems
|
|||||||
POSTGRES_USER=ems
|
POSTGRES_USER=ems
|
||||||
POSTGRES_PASSWORD=
|
POSTGRES_PASSWORD=
|
||||||
POSTGRES_PORT=5432
|
POSTGRES_PORT=5432
|
||||||
|
CLIENT_PORT=5173
|
||||||
EMS_PORT=5000
|
EMS_PORT=5000
|
||||||
MONITOR_PORT=1234
|
MONITOR_PORT=1234
|
@ -5,22 +5,22 @@ services:
|
|||||||
context: ./client
|
context: ./client
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- 5173:5173
|
- ${CLIENT_PORT}:5173
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
redis_db:
|
# redis_db:
|
||||||
image: "redis:alpine"
|
# image: "redis:alpine"
|
||||||
container_name: redis_db
|
# container_name: redis_db
|
||||||
ports:
|
# ports:
|
||||||
- ${REDIS_PORT}:${REDIS_PORT}
|
# - ${REDIS_PORT}:${REDIS_PORT}
|
||||||
environment:
|
# environment:
|
||||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
# - REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||||
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
|
# command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
|
||||||
volumes:
|
# volumes:
|
||||||
- ./redis_data:/data
|
# - ./redis_data:/data
|
||||||
expose:
|
# expose:
|
||||||
- ${REDIS_PORT}:${REDIS_PORT}
|
# - ${REDIS_PORT}:${REDIS_PORT}
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
|
||||||
ems:
|
ems:
|
||||||
container_name: ems
|
container_name: ems
|
||||||
@ -29,12 +29,12 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ./ems/public:/app/public
|
- ./ems/public:/app/public
|
||||||
links:
|
# links:
|
||||||
- redis_db:redis_db
|
# - redis_db:redis_db
|
||||||
- psql_db:psql_db
|
# - psql_db:psql_db
|
||||||
depends_on:
|
# depends_on:
|
||||||
- redis_db
|
# - redis_db
|
||||||
- psql_db
|
# - psql_db
|
||||||
environment:
|
environment:
|
||||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||||
- REDIS_HOST=${REDIS_HOST}
|
- REDIS_HOST=${REDIS_HOST}
|
||||||
@ -45,37 +45,37 @@ services:
|
|||||||
- ${EMS_PORT}:${EMS_PORT}
|
- ${EMS_PORT}:${EMS_PORT}
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
monitor:
|
# monitor:
|
||||||
container_name: monitor
|
# container_name: monitor
|
||||||
build:
|
# build:
|
||||||
context: ./monitor
|
# context: ./monitor
|
||||||
dockerfile: Dockerfile
|
# dockerfile: Dockerfile
|
||||||
environment:
|
# environment:
|
||||||
- MONITOR_PORT=${MONITOR_PORT}
|
# - MONITOR_PORT=${MONITOR_PORT}
|
||||||
ports:
|
# ports:
|
||||||
- ${MONITOR_PORT}:${MONITOR_PORT}
|
# - ${MONITOR_PORT}:${MONITOR_PORT}
|
||||||
volumes:
|
# volumes:
|
||||||
- ./monitor/data:/app/data
|
# - ./monitor/data:/app/data
|
||||||
restart: always
|
# restart: always
|
||||||
|
|
||||||
psql_db:
|
# psql_db:
|
||||||
container_name: psql_db
|
# container_name: psql_db
|
||||||
image: postgres:16.4-alpine
|
# image: postgres:16.4-alpine
|
||||||
volumes:
|
# volumes:
|
||||||
- ./psql_data:/var/lib/postgresql/data
|
# - ./psql_data:/var/lib/postgresql/data
|
||||||
environment:
|
# environment:
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
# - POSTGRES_DB=${POSTGRES_DB}
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
# - POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
ports:
|
# ports:
|
||||||
- ${POSTGRES_PORT}:${POSTGRES_PORT}
|
# - ${POSTGRES_PORT}:${POSTGRES_PORT}
|
||||||
expose:
|
# expose:
|
||||||
- ${POSTGRES_PORT}
|
# - ${POSTGRES_PORT}
|
||||||
healthcheck:
|
# healthcheck:
|
||||||
test:
|
# test:
|
||||||
['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
# ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||||
interval: 10s
|
# interval: 10s
|
||||||
timeout: 5s
|
# timeout: 5s
|
||||||
retries: 5
|
# retries: 5
|
||||||
start_period: 10s
|
# start_period: 10s
|
||||||
restart: always
|
# restart: always
|
||||||
|
Reference in New Issue
Block a user