ex_trainer/docker-compose.yml
João Paulo Dubas 2039b43c53 feat: upgrade elixir/erlang runtimes (#35)
Upgrade runtimes to the latest versions:

* elixir to 1.15.4
* erlang to 26.0.2

Improve CI definition by using a cache that considers the runtime version.

Save disk space by using the `slim` image variant.

Co-authored-by: Joao P Dubas <joao.dubas@gmail.com>
Reviewed-on: #35
2023-07-23 23:01:03 +00:00

39 lines
889 B
YAML

---
services:
db:
image: 'postgres:15.3-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.15.4-slim'
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: {}