-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpodman-compose.yml
More file actions
113 lines (107 loc) · 2.68 KB
/
podman-compose.yml
File metadata and controls
113 lines (107 loc) · 2.68 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
version: '3.8'
services:
# Main Everything OpenCode application
app:
image: everything-opencode:latest
container_name: everything-opencode
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000' # Main application
- '3005:3005' # PineScript debug server
- '4000:4000' # JavaScript command runner
- '4001:4001' # Python command runner
environment:
- NODE_ENV=production
- DEBUG_ENABLED=true
- PORT=3000
- DEBUG_PORT=3005
- LOG_LEVEL=info
- CORS_ORIGIN=*
- MAX_FILE_SIZE=10MB
volumes:
- everything-opencode-data:/app/data:Z
- ./config:/app/config:ro,Z
- ./logs:/app/logs:Z
networks:
- everything-opencode-net
restart: unless-stopped
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# PostgreSQL database (optional)
postgres:
image: docker.io/postgres:15-alpine
container_name: everything-opencode-postgres
environment:
- POSTGRES_DB=opencode
- POSTGRES_USER=opencode
- POSTGRES_PASSWORD=opencode123
volumes:
- postgres-data:/var/lib/postgresql/data:Z
- ./postgres-backups:/backups:Z
networks:
- everything-opencode-net
ports:
- '5432:5432'
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U opencode']
interval: 30s
timeout: 10s
retries: 3
# Redis cache (optional)
redis:
image: docker.io/redis:7-alpine
container_name: everything-opencode-redis
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
volumes:
- redis-data:/data:Z
networks:
- everything-opencode-net
ports:
- '6379:6379'
restart: unless-stopped
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 30s
timeout: 10s
retries: 3
# Nginx reverse proxy (optional)
nginx:
image: docker.io/nginx:alpine
container_name: everything-opencode-nginx
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro,Z
- ./nginx/ssl:/etc/nginx/ssl:ro,Z
- ./nginx/logs:/var/log/nginx:Z
depends_on:
- app
networks:
- everything-opencode-net
restart: unless-stopped
volumes:
everything-opencode-data:
driver: local
driver_opts:
type: none
device: ${PWD}/data
o: bind
postgres-data:
driver: local
redis-data:
driver: local
networks:
everything-opencode-net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.1