Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GEOCODER_URL=http://localhost:8081/0.1
GEOCODER_API_KEY=demo
ROUTER_URL=http://localhost:8082/0.1
ROUTER_API_KEY=demo
OPTIMIZER_URL=http://localhost:8083/0.1
OPTIMIZER_URL=http://optimizer-server/0.1
OPTIMIZER_API_KEY=demo
SENTRY_DSN=http://public:secret@example.com/project-id

Expand Down
24 changes: 19 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ version: '3.3'
x-web: &web
build: .
image: planner-web:${CARTOWAY_VERSION:-latest}
networks:
- private-network
- public-network
environment:
env_file: .env
RAILS_ENV: ${RAILS_ENV:-production}
Expand All @@ -11,21 +14,23 @@ x-web: &web
GEOCODER_API_KEY: ${GEOCODER_API_KEY:-demo}
ROUTER_URL: ${ROUTER_URL:-http://localhost:8082/0.1}
ROUTER_API_KEY: ${ROUTER_API_KEY:-demo}
OPTIMIZER_URL: ${OPTIMIZER_URL:-http://localhost:8083/0.1}
OPTIMIZER_URL: ${OPTIMIZER_URL:-http://optimizer-server/0.1}
OPTIMIZER_API_KEY: ${OPTIMIZER_API_KEY:-demo}
SENTRY_DSN: ${SENTRY_DSN}
# SENTRY_DSN: ${SENTRY_DSN}
HERE_MAP_APIKEY: ${HERE_MAP_APIKEY}
volumes:
- ./config/database.yml.docker:/srv/app/config/database.yml
- ./docker/uploads:/srv/app/public/uploads
depends_on:
- db
- redis-cache
volumes:
- ./config/database.yml.docker:/srv/app/config/database.yml
- ./docker/uploads:/srv/app/public/uploads
restart: unless-stopped

services:
db:
image: postgres:15
networks:
- private-network
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
Expand All @@ -34,6 +39,8 @@ services:

redis-cache:
image: redis:${REDIS_VERSION:-7-alpine}
networks:
- private-network
restart: unless-stopped
command: redis-server --save ""

Expand All @@ -49,3 +56,10 @@ services:

volumes:
pg_data:

networks:
private-network:
external: false

public-network:
name: public-network