adamant-kite-43734
04/17/2024, 7:59 PMfast-garage-66093
04/17/2024, 11:44 PMShared
user, or does it happen for directories in your home directory as well?fast-garage-66093
04/17/2024, 11:46 PMenough-kitchen-73222
04/18/2024, 12:49 AMdocker compose up --build -d
My project is listed in the following directory:
/Users/Shared/Documents/Projects/Paint/github/queue
And my project's docker-compose.yml file looks like the following:
version: '3.6'
services:
ui:
build: ./ui
container_name: ui
stdin_open: true
tty: true
command: npm start
volumes:
- /app/node_modules
- /Users/Shared/Documents/Projects/Paint/github/queue/ui
- type: bind
source: ./ui
target: /app
consistency: cached
- npm-cache-volume:/npm-cache
environment:
- CHOKIDAR_USEPOLLING=true
ports:
- '8081:8081'
depends_on:
- api
- fake_websocket_service
- fake_dapper_service
# deploy:
# resources:
# limits:
# cpus: '2.0'
api:
build: ./api
container_name: api
tty: true
stdin_open: true
command: ./start_dev.rb
volumes:
- ./api:/app
- /Users/Shared/Documents/Projects/Paint/github/queue/api
env_file: ./api/.env
ports:
- '3001:3001'
depends_on:
- redis
- fake_one_paint_api
- fake_paint_queue_service
bopis:
build: ./bopis
container_name: bopis
tty: true
stdin_open: true
command: ./start_dev.rb
volumes:
- ./bopis:/app
- /Users/Shared/Documents/Projects/Paint/github/queue/bopis
env_file: ./bopis/.env
ports:
- '3002:3002'
depends_on:
- db
- redis
- fake_one_paint_api
- fake_bopis_services
- fake_paint_queue_service
db:
container_name: mariadb
image: <http://docker.artifactory.homedepot.com/mariadb:latest|docker.artifactory.homedepot.com/mariadb:latest>
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ./data:/var/lib/mysql
ports:
- '3306:3306'
redis:
image: <http://docker.artifactory.homedepot.com/redis:latest|docker.artifactory.homedepot.com/redis:latest>
ports:
- '6379:6379'
fake_dapper_service:
build: ./fake_dapper_service
container_name: fake_dapper_service
command: npm start
volumes:
- npm-cache-volume:/npm-cache
- /Users/Shared/Documents/Projects/Paint/github/queue/fake_dapper_service
ports:
- '10104:10104'
fake_paint_queue_service:
build: ./fake_paint_queue_service
container_name: fake_paint_queue_service
command: npm start
volumes:
- npm-cache-volume:/npm-cache
- /Users/Shared/Documents/Projects/Paint/github/queue/fake_paint_queue_service
ports:
- '4001:4001'
fake_one_paint_api:
build: ./fake_one_paint_api
container_name: fake_one_paint_api
command: npm start
volumes:
- npm-cache-volume:/npm-cache
- /Users/Shared/Documents/Projects/Paint/github/queue/fake_one_paint_api
ports:
- '10101:10101'
fake_bopis_services:
build: ./fake_bopis_services
container_name: fake_bopis_services
command: npm start
volumes:
- npm-cache-volume:/npm-cache
- /Users/Shared/Documents/Projects/Paint/github/queue/fake_bopis_services
ports:
- '10105:10105'
fake_websocket_service:
build: ./fake_websocket_service
container_name: fake_websocket_service
command: npm start
volumes:
- npm-cache-volume:/npm-cache
- /Users/Shared/Documents/Projects/Paint/github/queue/fake_websocket_service
ports:
- '10102:10102'
e2e:
ipc: host
build: ./e2e
container_name: e2e
volumes:
- ./e2e:/app
- /app/node_modules
depends_on:
- ui
command: -c baseUrl=<http://ui:8081/#/>
shm_size: 2048M # Allow Cypress to use extra memory
volumes:
npm-cache-volume:
fast-garage-66093
04/18/2024, 1:24 AMfast-garage-66093
04/18/2024, 1:25 AM