Skip to content

Commit

Permalink
Add docker-compose files for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Mar 11, 2024
1 parent 04ce62d commit 7233ef7
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ images/data/
data/
images/.env
images/tiler.yml
values.dev.yaml
values.dev.yaml
secrets
tegola
15 changes: 15 additions & 0 deletions compose/tiler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'
services:
tiler:
image: ohm-tiler-server:v1
build:
context: ../images/tiler-server
dockerfile: Dockerfile
volumes:
- ../data/tiler-server-data:/mnt/data
- ../images/tiler-server:/app
ports:
- "9090:9090"
env_file:
- ../envs/.env.tiler.example
restart: always
12 changes: 6 additions & 6 deletions images/docker-compose.yml → compose/web.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
version: '3.4'
version: '3.8'
services:
db:
platform: linux/amd64
image: osmseed-db:v1
build:
context: ../images/db
context: ./../images/db
dockerfile: Dockerfile
ports:
- '5432:5432'
volumes:
- ./data/db-data:/var/lib/postgresql/data
env_file:
- ./.env.example
- ./.env.web.example
web:
image: osmseed-web:v1
build:
context: ./web
context: ./../images/web
dockerfile: Dockerfile
ports:
- '80:80'
env_file:
- ./.env.example
- ./.env.web.example
####### Enable for development mode
# volumes:
# - ./../../ohm-website:/var/www
# - ./../../ohm-website:/var/www
23 changes: 23 additions & 0 deletions envs/.env.tiler.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#######################################
# Environment variables for tiler database
#######################################
POSTGRES_HOST=host.docker.internal
POSTGRES_DB=tiler-osm
POSTGRES_USER=postgres
POSTGRES_PASSWORD=1234
POSTGRES_PORT=5432
POSTGRES_DB_MAX_CONNECTIONS=200

# #######################################
# tiler-serve env variables,
# #######################################
TILER_SERVER_PORT=9090
TILER_CACHE_BASEPATH=/mnt/data
TILER_CACHE_MAX_ZOOM=22
TILER_CACHE_TYPE=file
TILER_CACHE_TYPE=file
TILER_CACHE_BUCKET=osmseed-staging
TILER_CACHE_BASEPATH=tegola
TILER_CACHE_REGION=us-east-1
TILER_CACHE_AWS_ACCESS_KEY_ID=...
TILER_CACHE_AWS_SECRET_ACCESS_KEY=...
7 changes: 7 additions & 0 deletions envs/.env.web.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
POSTGRES_DB=openstreetmap
POSTGRES_PASSWORD=abcd
POSTGRES_USER=postgres
POSTGRES_PORT=5432
POSTGRES_HOST=host.docker.internal
SERVER_URL=localhost
SERVER_PROTOCOL=http

0 comments on commit 7233ef7

Please sign in to comment.