Skip to content

Commit

Permalink
Add various DBs as separate services.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 4, 2019
1 parent 24df540 commit 06b489e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ services:
- ./db:/db
restart: on-failure

dbmate-prod:
image: amacneil/dbmate
command: "echo To be run manually."
environment:
- "DATABASE_URL=postgres://[email protected]:26257/crawl_db?sslmode=disable"
volumes:
- ./db:/db
restart: never

dbmate-postgres:
image: amacneil/dbmate
command: "echo To be run manually."
environment:
- "DATABASE_URL=postgres://crawl-db:[email protected]:5432/crawl_db?sslmode=disable"
volumes:
- ./db:/db
restart: never

0 comments on commit 06b489e

Please sign in to comment.