Skip to content

Commit

Permalink
Merge pull request #4 from Asone/fix/docker-volumes
Browse files Browse the repository at this point in the history
Fix/docker volumes
  • Loading branch information
Asone committed Sep 15, 2018
2 parents 0b1295d + 0e36729 commit cdafcef
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 37 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.env
.DS_Store
_dumps/*
_data/*
!_data/*-data/
_data/*-data/**/*




5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ hatvp-data-fetcher:
docker-compose run hatvp cargo run -p tricoteuses_api_hatvp_fetcher -- -c Config.toml -v
wikidata-data-fetcher:
docker-compose run wikidata cargo run -p tricoteuses_api_wikidata_fetcher -- -c Config.toml -v
all-data-fetch:
docker-compose run assemblee cargo run -p tricoteuses_api_assemblee_open_data_fetcher -- -c Config.toml
docker-compose run assemblee cargo run -p tricoteuses_api_assemblee_photos_fetcher -- -c Config.toml -v
docker-compose run hatvp cargo run -p tricoteuses_api_hatvp_fetcher -- -c Config.toml -v
docker-compose run wikidata cargo run -p tricoteuses_api_wikidata_fetcher -- -c Config.toml -v
4 changes: 4 additions & 0 deletions _data/assemblee-data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
4 changes: 4 additions & 0 deletions _data/hatvp-data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
4 changes: 4 additions & 0 deletions _data/senat-data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
4 changes: 4 additions & 0 deletions _data/wikidata-data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
40 changes: 4 additions & 36 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,6 @@ services:
working_dir: /usr/src/app
ports:
- 5432:5432

daemon:
build:
context: ./_provisioning/daemon
command : bash
tty: true
depends_on:
- db
volumes:
- ./_data:/tricoteuses-daemon/data
- ./_dumps:/_dumps

api:
build:
context: ./_provisioning/api
command: bash
volumes:
- ./_data:/tricoteuses-api/data
depends_on:
- db
- daemon

ui:
build:
context: ./_provisioning/ui
command: bash
depends_on:
- db
- api
ports:
- 3000:3000
volumes:
- ./_data/:/data

assemblee:
build:
Expand All @@ -57,7 +24,7 @@ services:
- ROCKET_ENV=staging
command: cargo run -p tricoteuses_api_assemblee -- -c Config.toml -v
volumes:
- ./_data:/assemblee-data/
- ./_data/assemblee-data/:/assemblee-data/
depends_on:
- db
ports:
Expand All @@ -70,17 +37,18 @@ services:
- ROCKET_ENV=staging
command: cargo run -p tricoteuses_api_hatvp -- -c Config.toml -v
volumes:
- ./_data:/hatvp-data/
- ./_data/hatvp-data/:/hatvp-data/
ports:
- 8002:8002

wikidata:
build:
context: ./_provisioning/wikidata-api
environment:
- ROCKET_ENV=staging
command: cargo run -p tricoteuses_api_wikidata -- -c Config.toml -v
volumes:
- ./_data:/wikidata-data/
- ./_data/wikidata-data:/wikidata-data/
ports:
- 8003:8003

Expand Down

0 comments on commit cdafcef

Please sign in to comment.