mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
37 lines
692 B
YAML
37 lines
692 B
YAML
services:
|
|
dev:
|
|
build: .
|
|
command: npm run start:dev
|
|
ports:
|
|
- "4000:4000"
|
|
env_file: .env
|
|
depends_on:
|
|
- redis
|
|
volumes:
|
|
- .:/usr/src/app
|
|
|
|
# Note that neither app-integration-test or test modes require env variables,
|
|
# need to find a way to pass variables without .env if this changes
|
|
|
|
app-integration-test:
|
|
build: .
|
|
command: npm run start:dev integration-testing
|
|
ports:
|
|
- "4000:4000"
|
|
depends_on:
|
|
- redis
|
|
volumes:
|
|
- .:/usr/src/app
|
|
|
|
test:
|
|
build: .
|
|
command: npm run test
|
|
depends_on:
|
|
- redis
|
|
volumes:
|
|
- .:/usr/src/app
|
|
redis:
|
|
image: redis:alpine
|
|
ports:
|
|
- "6379:6379"
|