Two commit
This commit is contained in:
55
docker-compose.yaml
Normal file
55
docker-compose.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: "nginx:stable-alpine"
|
||||
ports:
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./src:/var/www/laravel
|
||||
depends_on:
|
||||
- php
|
||||
- postgresql
|
||||
- nominatim
|
||||
php:
|
||||
build:
|
||||
context: dockerfiles
|
||||
dockerfile: php.Dockerfile
|
||||
volumes:
|
||||
- ./src:/var/www/laravel
|
||||
nominatim:
|
||||
image: mediagis/nominatim:4.4
|
||||
container_name: nominatim_server
|
||||
restart: always
|
||||
ports:
|
||||
- "8081:8080"
|
||||
environment:
|
||||
PBF_PATH: /nominatim/data/my_data.osm.pbf
|
||||
NOMINATIM_PBF_PATH: /nominatim/data/my_data.osm.pbf
|
||||
volumes:
|
||||
- ./my_data.osm.pbf:/nominatim/data/my_data.osm.pbf
|
||||
- ./nominatim_data:/var/lib/postgresql/data
|
||||
postgresql:
|
||||
image: "postgis/postgis:17-3.5-alpine"
|
||||
ports:
|
||||
- "5433:5432"
|
||||
env_file:
|
||||
- env/postgres.env
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
composer:
|
||||
build:
|
||||
context: dockerfiles
|
||||
dockerfile: composer.Dockerfile
|
||||
volumes:
|
||||
- ./src:/var/www/laravel
|
||||
artisan:
|
||||
build:
|
||||
context: dockerfiles
|
||||
dockerfile: php.Dockerfile
|
||||
volumes:
|
||||
- ./src:/var/www/laravel
|
||||
entrypoint: ["php", "/var/www/laravel/artisan"]
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user