blog/docker-compose.yml
2023-02-07 07:02:51 +01:00

37 lines
725 B
YAML

version: "3"
services:
db:
image: docker.io/postgres:alpine
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- db:/var/lib/postgresql/data
adminer:
image: docker.io/adminer:standalone
restart: always
ports:
- 8080:8080
depends_on:
- db
backend:
image: git.dergrimm.net/dergrimm/blog_backend:latest
build:
context: ./backend
restart: always
command: worker
environment:
BACKEND_DB_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_USER}
volumes:
- ./blog:/blog
ports:
- 80:80
depends_on:
- db
volumes:
db: