29 lines
642 B
YAML
29 lines
642 B
YAML
services:
|
|
webapi:
|
|
build:
|
|
context: .
|
|
dockerfile: WebApi/Dockerfile
|
|
# SQLite files in the webapi_data volume by default; point the
|
|
# *_DATABASE_URL variables at MySQL/PostgreSQL in .env (see .env.example).
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
ports:
|
|
# 5000 on the host is taken by AirPlay on macOS.
|
|
- "5050:5000"
|
|
volumes:
|
|
- webapi_data:/data
|
|
|
|
webapp:
|
|
build:
|
|
context: ./WebApp
|
|
# nginx with the production build, proxying the API paths to webapi
|
|
# (WebApp/nginx.conf).
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- webapi
|
|
|
|
volumes:
|
|
webapi_data:
|