diff --git a/.env.example b/.env.example index 009c96d..799c4b2 100644 --- a/.env.example +++ b/.env.example @@ -6,5 +6,6 @@ POSTGRES_DB=ems POSTGRES_USER=ems POSTGRES_PASSWORD= POSTGRES_PORT=5432 +CLIENT_PORT=5173 EMS_PORT=5000 MONITOR_PORT=1234 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f3dbb43..c03742b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,22 +5,22 @@ services: context: ./client dockerfile: Dockerfile ports: - - 5173:5173 + - ${CLIENT_PORT}:5173 restart: always - redis_db: - image: "redis:alpine" - container_name: redis_db - ports: - - ${REDIS_PORT}:${REDIS_PORT} - environment: - - REDIS_PASSWORD=${REDIS_PASSWORD} - command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ] - volumes: - - ./redis_data:/data - expose: - - ${REDIS_PORT}:${REDIS_PORT} - restart: unless-stopped + # redis_db: + # image: "redis:alpine" + # container_name: redis_db + # ports: + # - ${REDIS_PORT}:${REDIS_PORT} + # environment: + # - REDIS_PASSWORD=${REDIS_PASSWORD} + # command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ] + # volumes: + # - ./redis_data:/data + # expose: + # - ${REDIS_PORT}:${REDIS_PORT} + # restart: unless-stopped ems: container_name: ems @@ -29,12 +29,12 @@ services: dockerfile: Dockerfile volumes: - ./ems/public:/app/public - links: - - redis_db:redis_db - - psql_db:psql_db - depends_on: - - redis_db - - psql_db + # links: + # - redis_db:redis_db + # - psql_db:psql_db + # depends_on: + # - redis_db + # - psql_db environment: - REDIS_PASSWORD=${REDIS_PASSWORD} - REDIS_HOST=${REDIS_HOST} @@ -45,37 +45,37 @@ services: - ${EMS_PORT}:${EMS_PORT} restart: always - monitor: - container_name: monitor - build: - context: ./monitor - dockerfile: Dockerfile - environment: - - MONITOR_PORT=${MONITOR_PORT} - ports: - - ${MONITOR_PORT}:${MONITOR_PORT} - volumes: - - ./monitor/data:/app/data - restart: always + # monitor: + # container_name: monitor + # build: + # context: ./monitor + # dockerfile: Dockerfile + # environment: + # - MONITOR_PORT=${MONITOR_PORT} + # ports: + # - ${MONITOR_PORT}:${MONITOR_PORT} + # volumes: + # - ./monitor/data:/app/data + # restart: always - psql_db: - container_name: psql_db - image: postgres:16.4-alpine - volumes: - - ./psql_data:/var/lib/postgresql/data - environment: - - POSTGRES_DB=${POSTGRES_DB} - - POSTGRES_USER=${POSTGRES_USER} - - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - ports: - - ${POSTGRES_PORT}:${POSTGRES_PORT} - expose: - - ${POSTGRES_PORT} - healthcheck: - test: - ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'] - interval: 10s - timeout: 5s - retries: 5 - start_period: 10s - restart: always + # psql_db: + # container_name: psql_db + # image: postgres:16.4-alpine + # volumes: + # - ./psql_data:/var/lib/postgresql/data + # environment: + # - POSTGRES_DB=${POSTGRES_DB} + # - POSTGRES_USER=${POSTGRES_USER} + # - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + # ports: + # - ${POSTGRES_PORT}:${POSTGRES_PORT} + # expose: + # - ${POSTGRES_PORT} + # healthcheck: + # test: + # ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'] + # interval: 10s + # timeout: 5s + # retries: 5 + # start_period: 10s + # restart: always