mirror of
https://github.com/luxfi/explorer-v1.git
synced 2026-10-30 19:34:59 +00:00
31 lines
840 B
YAML
31 lines
840 B
YAML
services:
|
|
elixir:
|
|
image: ghcr.io/blockscout/devcontainer-elixir:1.19.4-erlang-27.3.4.6
|
|
|
|
# Uncomment next lines to use test Dockerfile with new Elixir version
|
|
# build:
|
|
# context: .
|
|
# dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
- ..:/workspace:cached
|
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
|
network_mode: service:db
|
|
|
|
# Overrides default command so things don't shut down after the process ends.
|
|
command: sleep infinity
|
|
|
|
db:
|
|
image: ghcr.io/hanzoai/sql:latest
|
|
command: postgres -c 'max_connections=250'
|
|
restart: unless-stopped
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: app
|
|
|
|
volumes:
|
|
postgres-data:
|