snipe/compose.yml

23 lines
563 B
YAML

services:
api:
build:
context: ..
dockerfile: snipe/Dockerfile
# Host networking lets nginx (in the web container) reach the API at
# 172.17.0.1:8510 (the Docker bridge gateway). Required — nginx.conf
# is baked into the image and hard-codes that address.
network_mode: host
env_file: .env
volumes:
- ./data:/app/snipe/data
restart: unless-stopped
web:
build:
context: .
dockerfile: docker/web/Dockerfile
ports:
- "8509:80"
restart: unless-stopped
depends_on:
- api