diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-09-24 12:14:37 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-09-24 12:14:37 -0400 |
| commit | 1d441876933b96b33439088d7cd0ca27678ab7c8 (patch) | |
| tree | 440fe2b8c5528a28774773a6f73e44bc8448f7f7 /docker-compose.yml | |
| parent | 12be51078f24cca0f7ceccb0885d1e60a0ae2148 (diff) | |
dockerize
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a3f011e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,33 @@ +version: '3' +services: + thulani: + image: thulani + build: . + depends_on: + - db + - migrate + + environment: + DATABASE_URL: "postgres://thulani:clickheretodie@db/memes" + RUST_BACKTRACE: 1 + + db: + image: postgres:latest + restart: always + volumes: + - db-data:/var/lib/postgresql/data + environment: + POSTGRES_USER: thulani + POSTGRES_PASSWORD: clickheretodie + POSTGRES_DB: memes + + migrate: + build: + context: . + dockerfile: Dockerfile-migrate + restart: on-failure + depends_on: + - db + +volumes: + db-data: |
