-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.59 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# docker-compose.yml - For server deployment
# This file should be placed in /opt/containers/visual4math/ on the server
version: '3'
services:
visual4math:
container_name: visual4math
# Docker will pull the image from GitHub Container Registry (GHCR)
image: 'ghcr.io/viktorlee426/visual4math:latest'
restart: always
ports: []
env_file:
- .env
# Specifies the network mode created by the ISG group
network_mode: 'default-isg'
# External storage should be placed in `/var/lib/peachlab/data`
# These volumes persist data outside the container
volumes:
- /var/lib/peachlab/data/visual4math/data:/app/data
- /var/lib/peachlab/data/visual4math/cached_images:/app/cached_images
- /var/lib/peachlab/data/visual4math/dataset:/app/dataset
# VIRTUAL_HOST and VIRTUAL_PORT map your port to the subdomain
# Let's Encrypt ensures HTTPS for your deployment
environment:
VIRTUAL_HOST: 'visual4math.peachhub-cntr1.inf.ethz.ch'
VIRTUAL_PORT: '8000'
PROXY_CONNECT_TIMEOUT: '300' # 5 minutes - connection timeout
LETSENCRYPT_HOST: 'visual4math.peachhub-cntr1.inf.ethz.ch'
LETSENCRYPT_EMAIL: 'zhengxli@ethz.ch' # Update with appropriate email
# Application environment variables
DATA_FILE_PATH: '/app/data/simple_data.json'
CACHE_DIR: '/app/cached_images'
DATASET_DIR: '/app/dataset'
ALLOWED_ORIGINS: 'https://visual4math.peachhub-cntr1.inf.ethz.ch'
# Watchtower label enables automatic updates after new images are pushed to GHCR
labels:
- com.centurylinklabs.watchtower.enable=true