-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
159 lines (146 loc) · 4.89 KB
/
docker-compose.dev.yml
File metadata and controls
159 lines (146 loc) · 4.89 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# =============================================================================
# GoExport Server - Docker Compose (Development Override)
# =============================================================================
# This file enables VNC/debug features for development.
#
# Usage (as an overlay on production):
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
#
# Or standalone (includes all services):
# docker compose -f docker-compose.dev.yml up --build
#
# =============================================================================
# VNC Access Points (when enabled):
# -----------------------------------------------------------------------------
# Display :99 (GoExport/Headless):
# - VNC: localhost:5999 (port 5999)
# - noVNC: http://localhost:6099 (web browser)
#
# Display :1 (Full Desktop - XFCE4):
# - VNC: localhost:5901 (port 5901)
# - noVNC: http://localhost:6080 (web browser)
#
# You can selectively enable/disable each feature via environment variables.
# =============================================================================
services:
app:
shm_size: 8g
image: lexiandev/goexport-server:latest
container_name: goexport-server
restart: unless-stopped
ports:
- "8080:80" # HTTP
- "5901:5901" # VNC - Display :1 (Desktop)
- "5999:5999" # VNC - Display :99 (GoExport headless display)
- "6080:6080" # noVNC - Display :1 (Desktop web viewer)
- "6099:6099" # noVNC - Display :99 (GoExport web viewer)
environment:
# Application
- APP_NAME=GoExport
- APP_ENV=local
- APP_DEBUG=true
- APP_URL=http://localhost:8080
- FORCE_HTTPS=false
# Database
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=goexport
- DB_USERNAME=goexport
- DB_PASSWORD=secret
# Queue
- QUEUE_CONNECTION=database
# Auto-migrate on startup
- AUTO_MIGRATE=true
# Virtual Display
- DISPLAY=:99
- DISPLAY_WIDTH=1920
- DISPLAY_HEIGHT=1080
# =================================================================
# VNC/Debug Features (ALL ENABLED for development)
# =================================================================
# View the GoExport headless display (:99) via VNC
- ENABLE_VNC_DISPLAY99=true
# Full XFCE4 desktop on display :1 (for debugging, running browsers, etc.)
- ENABLE_VNC_DESKTOP=true
# Web-based VNC viewers (noVNC) for both displays
- ENABLE_NOVNC=true
volumes:
# Persistent storage
- storage_data:/var/www/html/storage/app
- logs_data:/var/www/html/storage/logs
# For live code editing, uncomment the following (requires composer install locally):
# - .:/var/www/html:cached
# - /var/www/html/vendor
# - /var/www/html/node_modules
depends_on:
db:
condition: service_healthy
networks:
- goexport-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# =============================================================================
# Database Service (MySQL)
# =============================================================================
db:
image: mysql:8.0
container_name: goexport-db
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=rootsecret
- MYSQL_DATABASE=goexport
- MYSQL_USER=goexport
- MYSQL_PASSWORD=secret
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306" # Expose MySQL for external tools (dev only)
networks:
- goexport-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
# =============================================================================
# Redis Service
# =============================================================================
redis:
image: redis:7-alpine
container_name: goexport-redis
restart: unless-stopped
command: redis-server --appendonly yes
volumes:
- redis_data:/data
ports:
- "6379:6379" # Expose Redis for external tools (dev only)
networks:
- goexport-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# =============================================================================
# Volumes
# =============================================================================
volumes:
db_data:
driver: local
redis_data:
driver: local
storage_data:
driver: local
logs_data:
driver: local
# =============================================================================
# Networks
# =============================================================================
networks:
goexport-network:
driver: bridge