-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (101 loc) · 2.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
118 lines (101 loc) · 2.97 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '3.8'
services:
webspinner:
build:
context: .
dockerfile: deployment/Dockerfile
args:
DENO_VERSION: ${DENO_VERSION:-2.3.0}
image: "ghcr.io/spintheweb/webspinner:${WEBSPINNER_IMAGE_TAG:-latest}"
container_name: webspinner
restart: unless-stopped
ports:
- "8080:8080"
environment:
# Server Configuration
- HOST=0.0.0.0
- PORT=8080
# Site domain (set to your public DNS name). If unset, container will serve an info page on first run.
- SITE_DOMAIN=${SITE_DOMAIN:-}
# TLS/SSL (optional - uncomment and provide cert paths if using HTTPS)
# - CERTFILE=/app/.cert/cert.pem
# - KEYFILE=/app/.cert/key.pem
# Session Configuration
- SESSION_TIMEOUT=24
- MAX_USERS=0
# Site Configuration
- SITE_ROOT=./public
- WEBBASE=./.data/webbase.wbol
- COMMON_WEBBASE=./webbaselets/stwCommon.wbol
- STUDIO_WEBBASE=./webbaselets/stwStudio.wbol
# Upload Configuration
- MAX_UPLOADSIZE=200
# Security
- USERS=./.data/users.json
- ALLOW_DEV=false
# Database Connection (if using external database)
# - DB_HOST=mysql
# - DB_PORT=3306
# - DB_USER=webspinner
# - DB_PASSWORD=secret
# - DB_NAME=webspinner
volumes:
# Persist application data
- webspinner-data:/app/public/.data
# Optional: Mount custom webbaselets
# - ./custom-webbaselets:/app/webbaselets/custom:ro
# Optional: Mount certificates (for HTTPS)
# - ./certs:/app/.cert:ro
# Optional: Mount custom public files
# - ./custom-public:/app/public/custom:ro
networks:
- webspinner-network
# Optional: Add health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
# Optional: MySQL Database Service
# Uncomment if you need a database
# mysql:
# image: mysql:8.0
# container_name: webspinner-mysql
# restart: unless-stopped
# environment:
# - MYSQL_ROOT_PASSWORD=rootsecret
# - MYSQL_DATABASE=webspinner
# - MYSQL_USER=webspinner
# - MYSQL_PASSWORD=secret
# volumes:
# - mysql-data:/var/lib/mysql
# networks:
# - webspinner-network
# ports:
# - "3306:3306"
# Optional: PostgreSQL Database Service
# postgres:
# image: postgres:15-alpine
# container_name: webspinner-postgres
# restart: unless-stopped
# environment:
# - POSTGRES_DB=webspinner
# - POSTGRES_USER=webspinner
# - POSTGRES_PASSWORD=secret
# volumes:
# - postgres-data:/var/lib/postgresql/data
# networks:
# - webspinner-network
# ports:
# - "5432:5432"
volumes:
webspinner-data:
driver: local
# mysql-data:
# driver: local
# postgres-data:
# driver: local
networks:
webspinner-network:
driver: bridge