1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2024-11-24 08:42:27 +02:00
explain.depesz.com/docker/docker-compose.yml
2022-07-12 15:08:48 +01:00

27 lines
687 B
YAML

version: '3'
services:
web:
build:
context: ..
dockerfile: docker/Dockerfile
ports:
- "3000:3000"
depends_on:
- "db"
volumes:
# volumes instead of copying files. Don't use .. directly because we
# have to override explain.json
- ../lib:/explain/lib
- ../public:/explain/public
- ../layout:/explain/layout
- ../ext:/explain/ext
- ../templates:/explain/templates
db:
image: "postgres:11.4"
environment:
POSTGRES_USER: depesz_explain
POSTGRES_PASSWORD: depesz_explain
POSTGRES_DB: depesz_explain
volumes:
- ../sql:/docker-entrypoint-initdb.d