Skip to content

Commit

Permalink
fix: create subfolders for each service
Browse files Browse the repository at this point in the history
  • Loading branch information
Asone committed Sep 14, 2018
1 parent 0b1295d commit 9e29322
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.env
.DS_Store
_dumps/*
_data/*
_data/*.*
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 9e29322

Please sign in to comment.