ash_authentication/.devcontainer/docker-compose.yml

60 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2022-09-28 09:56:01 +13:00
version: "3.8"
name: ash_authentication
2022-09-28 09:56:01 +13:00
volumes:
apt-cache: {}
history: {}
db-data: {}
app-deps: {}
app-build: {}
app-elixir-ls: {}
app-asdf: {}
app-storage: {}
app-plts: {}
2022-09-28 09:56:01 +13:00
services:
app:
environment:
LOGGER_LEVEL: 1
PGHOST: db
PGPORT: 5432
PGUSER: postgres
PGDATABASE: app
HISTFILE: /var/tmp/history/shell.history
GIT_AUTHOR_EMAIL:
GIT_COMMITTER_EMAIL:
GITHUB_TOKEN:
PORT: 400
build:
context: ../
dockerfile: .devcontainer/Dockerfile
args:
HEX_API_KEY:
GITHUB_TOKEN:
volumes:
- ..:/workspace:cached
- "apt-cache:/var/cache/apt:rw"
- "history:/var/tmp/history:rw"
- "app-asdf:/home/vscode/.asdf:rw"
- "app-deps:/workspace/deps:rw"
- "app-build:/workspace/_build:rw"
- "app-elixir-ls:/workspace/.elixir_ls:rw"
- "app-storage:/storage:rw"
- "app-plts:/workspace/priv/plts:rw"
2022-09-28 09:56:01 +13:00
# 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: postgres:latest
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432