forked from VinokurovVE/tests
Rename; Added EMS server; redis compose
This commit is contained in:
@ -1,13 +1,47 @@
|
||||
services:
|
||||
client:
|
||||
container_name: client
|
||||
client_app:
|
||||
container_name: client_app
|
||||
build:
|
||||
context: ./frontend_reactjs
|
||||
context: ./client
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./frontend_reactjs:/app
|
||||
- ./client:/app
|
||||
- /app/node_modules
|
||||
- /app/dist
|
||||
ports:
|
||||
- 5173:5173
|
||||
restart: always
|
||||
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
|
||||
|
||||
ems:
|
||||
container_name: ems
|
||||
build:
|
||||
context: ./ems
|
||||
dockerfile: Dockerfile
|
||||
links:
|
||||
- redis_db:redis_db
|
||||
depends_on:
|
||||
- redis_db
|
||||
environment:
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||
- REDIS_HOST=${REDIS_HOST}
|
||||
- REDIS_PORT=${REDIS_PORT}
|
||||
- EMS_PORT=${EMS_PORT}
|
||||
ports:
|
||||
- ${EMS_PORT}:${EMS_PORT}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
|
Reference in New Issue
Block a user