ex_trainer/docker-compose.yml
renovate-bot ea530b4775 chore(deps): update elixir docker tag to v1.14.0 (#21)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | minor | `1.13.4` -> `1.14.0` |
| elixir |  | minor | `1.13.4` -> `1.14.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xNzkuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE3OS4wIn0=-->

Reviewed-on: #21
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-02-27 01:23:50 +00:00

41 lines
900 B
YAML

---
version: '3.7'
services:
db:
image: 'postgres:14.5-alpine'
hostname: &db_host db
init: true
environment:
POSTGRES_USER: &db_user postgres
POSTGRES_PASSWORD: &db_pass postgres
POSTGRES_DB: &db_name postgres
volumes:
- './priv/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql'
- 'db_data:/var/lib/postgresql/data'
restart: unless-stopped
app:
image: 'elixir:1.14.0'
hostname: app
depends_on:
- db
init: true
environment:
POSTGRES_HOST: *db_host
POSTGRES_USER: *db_user
POSTGRES_PASS: *db_pass
POSTGRES_NAME: wabanex_dev
volumes:
- '.:/opt/app'
- 'app_build:/opt/app/_build'
- 'app_deps:/opt/app/deps'
working_dir: /opt/app
restart: unless-stopped
entrypoint: sleep
command: infinity
volumes:
db_data: {}
app_build: {}
app_deps: {}