Created
May 9, 2019 15:55
-
-
Save jdesboeufs/15d62eedbcab40d33e01236deeffe61a to your computer and use it in GitHub Desktop.
Addok
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
addok: | |
image: etalab/addok | |
restart: always | |
ports: | |
- "${PORT}:7878" | |
volumes: | |
- ./addok-data/addok.conf:/etc/addok/addok.conf | |
- ./addok-data/addok.db:/data/addok.db | |
- ./logs/${COMPOSE_PROJECT_NAME}:/logs | |
links: | |
- addok-redis:redis | |
environment: | |
WORKERS: 8 | |
LOG_QUERIES: 1 | |
LOG_NOT_FOUND: 1 | |
SLOW_QUERIES: 200 | |
addok-redis: | |
image: etalab/addok-redis | |
restart: always | |
volumes: | |
- ./addok-data/dump.rdb:/data/dump.rdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://adresse.data.gouv.fr/data/geocode/ban_odbl_addok-latest.zip | |
mkdir addok-data | |
unzip -d addok-data ban_odbl_addok-latest.zip | |
COMPOSE_PROJECT_NAME=geocode1 PORT=7878 docker-compose up -d | |
COMPOSE_PROJECT_NAME=geocode2 PORT=7879 docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment