-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.full.yml
92 lines (82 loc) · 1.94 KB
/
docker-compose.full.yml
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
version: "3.7"
services:
# PHP Application Itself
app:
image: ghcr.io/runcodes-icmc/server:latest
restart: unless-stopped
ports:
- "9000:9000"
networks:
- runcodes-net
environment:
RUNCODES_S3_PUBLIC_ENDPOINT: http://localhost:8333
# Compiler Engine
rcc:
build: .
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./exec:/exec
networks:
- runcodes-net
environment:
RUNCODES_COMPILER_EXEC_DIR: /exec
RUNCODES_COMPILER_EXEC_DIR_REMOTE: ${PWD}/exec
# PostgreSQL Database
database:
image: ghcr.io/runcodes-icmc/database:latest-development
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=secret_password
ports:
- "5432:5432"
volumes:
- runcodes-db-vol:/var/lib/postgresql/data
networks:
- runcodes-net
# Caddy reverse proxy to communicate with PHP FastCGI
caddy:
image: ghcr.io/runcodes-icmc/server-caddy:latest
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./config/caddy/Caddyfile:/etc/caddy/Caddyfile # Mount Configs
networks:
- runcodes-net
# Local SMTP server for intercepting e-mails
smtp4dev:
image: rnwood/smtp4dev
restart: unless-stopped
ports:
- "8081:80"
networks:
- runcodes-net
# Redis for cache & session management
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- runcodes-redis-vol:/data
networks:
- runcodes-net
###########
# Seaweed #
###########
seaweed:
image: chrislusf/seaweedfs
ports:
- 8333:8333
command: server -s3 -volume.max=50 -dir="/data" -master.volumeSizeLimitMB=256 -ip=seaweed -ip.bind=0.0.0.0
volumes:
- runcodes-seaweed-vol:/data
networks:
- runcodes-net
networks:
runcodes-net:
volumes:
runcodes-db-vol:
runcodes-redis-vol:
runcodes-seaweed-vol: