mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
20 lines
554 B
YAML
20 lines
554 B
YAML
version: "3.3"
|
|
services:
|
|
app:
|
|
build:
|
|
context: ..
|
|
dockerfile: "./docker/Dockerfile"
|
|
command: /srv/copanier-venv/bin/gunicorn -k roll.worker.Worker copanier:app --bind 0.0.0.0:2244
|
|
volumes:
|
|
- "../db:/srv/copanier/db" # To persist database changes
|
|
restart: always
|
|
static:
|
|
image: "nginx:latest"
|
|
volumes:
|
|
- "../copanier/static:/srv/copanier_static/static:ro"
|
|
- "./nginx-default.conf:/etc/nginx/conf.d/default.conf:ro"
|
|
restart: always
|
|
depends_on:
|
|
- app
|
|
ports:
|
|
- 0.0.0.0:2244:80
|