archery/docker-compose.yml

30 lines
758 B
YAML

version: '2'
services:
archery:
container_name: archery
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./config:/srv/archery/config
- /var/run/docker.sock:/var/run/docker.sock
environment:
PASSWORD: ${POSTGRES_PASSWORD}
restart: "no"
ports:
- 8080:8080
depends_on:
- postgres
postgres:
container_name: archery-postgres
image: postgres:17-alpine
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: archery
POSTGRES_DB: archery
volumes:
- ./config/postgres:/var/lib/postgresql/data
restart: "no"