-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 911 Bytes
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
28
version: '3.3'
services:
api:
build: .
image: router-api:${CARTOROUTE_VERSION:-latest}
ports:
- "8082:80" # HOST:CONTAINER, edit only HOST part
volumes:
- .:/srv/app
- ./docker/access.rb:/srv/app/config/access.rb
- ./docker/production.rb:/srv/app/config/environments/production.rb
- ./docker/production.rb:/srv/app/config/environments/development.rb
- ./docker/poly:/srv/app/poly
depends_on:
- redis-cache
environment:
REDIS_HOST: redis-cache
APP_ENV: production # Switch to "development" for more traces
HERE_APP_ID: ${HERE_APP_ID}
HERE_APP_CODE: ${HERE_APP_CODE}
HERE8_APIKEY: ${HERE8_APIKEY}
command: bundle exec puma -v -p 80 --pidfile 'tmp/server.pid'
restart: unless-stopped
redis-cache:
image: redis:${REDIS_VERSION:-7-alpine}
command: redis-server --save ""
restart: unless-stopped