mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
This is the easiest way to set up the `timeseries` module during development
71 lines
1.6 KiB
YAML
71 lines
1.6 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-no-persistence
|
|
environment:
|
|
REDIS_URL: redis://redis-no-persistence:6379
|
|
|
|
volumes:
|
|
- .:/usr/src/app
|
|
|
|
test:
|
|
build: .
|
|
command: npm run test
|
|
depends_on:
|
|
- redis-no-persistence
|
|
environment:
|
|
REDIS_URL: redis://redis-no-persistence:6379
|
|
|
|
volumes:
|
|
- .:/usr/src/app
|
|
|
|
redis:
|
|
image: redis/redis-stack:7.2.0-v17
|
|
container_name: redis-timeseries
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
- ./redis-stack.conf:/redis-stack.conf
|
|
command: redis-stack-server /redis-stack.conf
|
|
|
|
redis-no-persistence:
|
|
image: redis/redis-stack:7.2.0-v17
|
|
container_name: redis-timeseries-no-persistence
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
volumes:
|
|
redis_data: # Add this volume definition
|
|
|