-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.frontend.yml
27 lines (24 loc) · 1.07 KB
/
docker-compose.frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
services:
di-auth-frontend:
container_name: di-authentication-frontend_di-auth-frontend
build:
context: .
dockerfile: local.Dockerfile
ports:
- "${DOCKER_FRONTEND_PORT:-3000}:${DOCKER_FRONTEND_PORT:-3000}"
- "${DOCKER_FRONTEND_NODEMON_PORT:-9230}:${DOCKER_FRONTEND_NODEMON_PORT:-9230}"
volumes:
- ./:/app
env_file:
- .env
environment:
ANALYTICS_COOKIE_DOMAIN: localhost
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID is required. This should be set by `startup.sh` so there may be an issue with the startup script.}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:?AWS_SECRET_ACCESS_KEY is required. This should be set by `startup.sh` so there may be an issue with the startup script.}
# We ignore `.env` values here, as we're using the docker network for redis.
REDIS_PORT: 6379 # This is the default port for Redis
REDIS_HOST: redis # This is the name of the service in `docker-compose.yml`
PORT: ${DOCKER_FRONTEND_PORT:-3000}
restart: on-failure
networks:
- di-net