Files
project-inter-server/docker-compose.yml

55 lines
1.2 KiB
YAML

# Note that .env file will automatically populate
# variables in this file.
# If these variables are also set on the host system,
# those will be used over the .env file.
# See https://vsupalov.com/docker-arg-env-variable-guide/
x-common-environment: &common-server-environment
APNS_IS_PRODUCTION: ${APNS_IS_PRODUCTION}
APNS_BUNDLE_ID: ${APNS_BUNDLE_ID}
APNS_TEAM_ID: ${APNS_TEAM_ID}
APNS_KEY_ID: ${APNS_KEY_ID}
APNS_PRIVATE_KEY: ${APNS_PRIVATE_KEY}
REDIS_URL: redis://redis:6379
services:
dev:
build: .
command: npm run start:dev
ports:
- "4000:4000"
depends_on:
- redis
environment:
<<: *common-server-environment
volumes:
- .:/usr/src/app
app-integration-test:
build: .
command: npm run start:dev integration-testing
ports:
- "4000:4000"
depends_on:
- redis
environment:
<<: *common-server-environment
volumes:
- .:/usr/src/app
test:
build: .
command: npm run test
depends_on:
- redis
environment:
<<: *common-server-environment
volumes:
- .:/usr/src/app
redis:
image: redis:alpine
ports:
- "6379:6379"