-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
114 lines (105 loc) · 3.34 KB
/
docker-compose.yml
File metadata and controls
114 lines (105 loc) · 3.34 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
name: cloudpebble
services:
nginx:
image: nginx:alpine
ports:
- "${NGINX_PORT:-80}:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web
# - qemu # Optional - emulator
# - ycmd # Optional - code completion
web:
build: cloudpebble/
links:
- redis
- postgres
- s3
# - qemu # Optional - emulator
# - ycmd # Optional - code completion
environment:
- DEBUG=yes
- RUN_WEB=yes
- RUN_MIGRATE=yes
- AWS_ENABLED=yes
- PORT=80
- AWS_S3_FAKE_S3=${AWS_S3_FAKE_S3-s3:4569}
- AWS_S3_ENDPOINT_URL=${AWS_S3_ENDPOINT_URL:-}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-}
- AWS_S3_SOURCE_BUCKET=${AWS_S3_SOURCE_BUCKET:-source.cloudpebble.net}
- AWS_S3_BUILDS_BUCKET=${AWS_S3_BUILDS_BUCKET:-builds.cloudpebble.net}
- AWS_S3_EXPORT_BUCKET=${AWS_S3_EXPORT_BUCKET:-export.cloudpebble.net}
- MEDIA_URL=${PUBLIC_URL}/s3builds/
- QEMU_URLS=${PUBLIC_URL}/
- YCM_URLS=http://ycmd:80/
- YCMD_PUBLIC_URL=${YCMD_PUBLIC_URL:-}
- PUBLIC_URL=${PUBLIC_URL}/
- EXPECT_SSL=${EXPECT_SSL:-no}
- LIBPEBBLE_PROXY=wss://cloudpebble-proxy.repebble.com/tool
- CLOUDPEBBLE_PROXY=${CLOUDPEBBLE_PROXY:-wss://cloudpebble-proxy.repebble.com/tool}
- PEBBLE_AUTH_URL=https://auth.rebble.io
- FIREBASE_PROJECT_ID=coreapp-ce061
- GITHUB_ID=${GITHUB_ID:-}
- GITHUB_SECRET=${GITHUB_SECRET:-}
- GITHUB_SYNC_CLIENT_ID=${GITHUB_SYNC_CLIENT_ID:-}
- GITHUB_SYNC_CLIENT_SECRET=${GITHUB_SYNC_CLIENT_SECRET:-}
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URL=${DATABASE_URL:-}
- REDIS_URL=${REDIS_URL:-}
celery:
build: cloudpebble/
links:
- redis
- postgres
- s3
environment:
- DEBUG=yes
- RUN_CELERY=yes
- AWS_ENABLED=yes
- EXPORT_ROOT=http://web:80/export.cloudpebble.net/
- AWS_S3_FAKE_S3=${AWS_S3_FAKE_S3-s3:4569}
- AWS_S3_ENDPOINT_URL=${AWS_S3_ENDPOINT_URL:-}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-}
- AWS_S3_SOURCE_BUCKET=${AWS_S3_SOURCE_BUCKET:-source.cloudpebble.net}
- AWS_S3_BUILDS_BUCKET=${AWS_S3_BUILDS_BUCKET:-builds.cloudpebble.net}
- AWS_S3_EXPORT_BUCKET=${AWS_S3_EXPORT_BUCKET:-export.cloudpebble.net}
- MEDIA_URL=${PUBLIC_URL:-http://nginx}/s3builds/
- PUBLIC_URL=${PUBLIC_URL}/
- GITHUB_ID=${GITHUB_ID:-}
- GITHUB_SECRET=${GITHUB_SECRET:-}
- GITHUB_SYNC_CLIENT_ID=${GITHUB_SYNC_CLIENT_ID:-}
- GITHUB_SYNC_CLIENT_SECRET=${GITHUB_SYNC_CLIENT_SECRET:-}
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URL=${DATABASE_URL:-}
- REDIS_URL=${REDIS_URL:-}
qemu:
build: cloudpebble-qemu-controller/
restart: unless-stopped
environment:
- EMULATOR_FIXED_LIMIT=${EMULATOR_FIXED_LIMIT:-90}
profiles:
- emulator
ycmd:
build: cloudpebble-ycmd-proxy/
profiles:
- codecomplete
redis:
image: redis
postgres:
image: postgres:16
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres-data:/var/lib/postgresql/data
s3:
image: kuracloud/fake-s3
ports:
- "8003:4569"
volumes:
- s3-data:/fakes3_root
volumes:
postgres-data:
s3-data: