-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.52 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
api:
build: .
image: ghcr.io/cartoway/router-api:${CARTOROUTE_VERSION:-master}
ports:
- "8082:80" # HOST:CONTAINER, edit only HOST part
volumes:
- .:/srv/app
- ./router-demo/dist:/srv/app/public
- ./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: ${APP_ENV:-development}
HERE8_APIKEY: ${HERE8_APIKEY:-}
SENTRY_DSN: ${SENTRY_DSN:-}
command: bundle exec puma -v -p 80 --pidfile 'tmp/server.pid' -t "${PUMA_THREADS:-0:5}" -w "${PUMA_WORKERS:-0}"
restart: unless-stopped
router-demo-build:
profiles:
- tools
image: node:20
working_dir: /srv/app/router-demo
volumes:
- .:/srv/app
command: >
sh -c "\
patch vite.config.ts < ../config/router-demo.vite.patch && \
npm install && \
npm run build && \
mv dist/index.html dist/route.html && \
cp -r dist/* ../public/ && \
patch -R vite.config.ts < ../config/router-demo.vite.patch\
"
redis-cache:
image: redis:${REDIS_VERSION:-7-alpine}
command: redis-server --save ""
healthcheck:
test: redis-cli --raw incr ping
start_interval: 1s
start_period: 30s
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped