-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
77 lines (72 loc) · 2.65 KB
/
Copy pathcompose.dev.yml
File metadata and controls
77 lines (72 loc) · 2.65 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
services:
client:
image: node:22-bookworm
working_dir: /app
command: sh -c "corepack enable && yarn install --frozen-lockfile && yarn workspace letscube-client start"
environment:
HOST: 0.0.0.0
PORT: 3000
REACT_APP_API_ORIGIN: ${REACT_APP_API_ORIGIN:-http://localhost:8080}
REACT_APP_SOCKETIO_ORIGIN: ${REACT_APP_SOCKETIO_ORIGIN:-http://localhost}
REACT_APP_WCA_ORIGIN: ${REACT_APP_WCA_ORIGIN:-https://staging.worldcubeassociation.org}
REACT_APP_WCA_CLIENT_ID: ${REACT_APP_WCA_CLIENT_ID:-example-application-id}
volumes:
- .:/app
- client-node-modules:/app/node_modules
ports:
- "3000:3000"
depends_on:
- api
- socket
api:
image: node:22-bookworm
working_dir: /app
command: sh -c "corepack enable && yarn install --frozen-lockfile && yarn workspace letscube-server start:server"
environment:
NODE_ENV: dev
PORT: ${PORT:-8080}
SOCKETIO_PORT: ${SOCKETIO_PORT:-9000}
MONGO_URL: ${MONGO_URL:-mongodb://mongo:27017/letscube}
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
AUTH_SECRET: ${AUTH_SECRET:-dev-secret}
AUTH_CALLBACK_URL: ${AUTH_CALLBACK_URL:-http://localhost:8080/auth/callback}
WCA_SOURCE: ${WCA_SOURCE:-https://staging.worldcubeassociation.org}
WCA_CLIENT_ID: ${WCA_CLIENT_ID:-example-application-id}
WCA_CLIENT_SECRET: ${WCA_CLIENT_SECRET:-example-secret}
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:8080}
volumes:
- .:/app
- api-node-modules:/app/node_modules
ports:
- "8080:8080"
socket:
image: node:22-bookworm
working_dir: /app
command: sh -c "corepack enable && yarn install --frozen-lockfile && yarn workspace letscube-server start:socket"
environment:
NODE_ENV: dev
PORT: ${PORT:-8080}
SOCKETIO_PORT: ${SOCKETIO_PORT:-9000}
MONGO_URL: ${MONGO_URL:-mongodb://mongo:27017/letscube}
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
AUTH_SECRET: ${AUTH_SECRET:-dev-secret}
AUTH_CALLBACK_URL: ${AUTH_CALLBACK_URL:-http://localhost:8080/auth/callback}
WCA_SOURCE: ${WCA_SOURCE:-https://staging.worldcubeassociation.org}
WCA_CLIENT_ID: ${WCA_CLIENT_ID:-example-application-id}
WCA_CLIENT_SECRET: ${WCA_CLIENT_SECRET:-example-secret}
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:8080}
volumes:
- .:/app
- socket-node-modules:/app/node_modules
ports:
- "9000:9000"
mongo:
ports:
- "127.0.0.1:27017:27017"
redis:
ports:
- "127.0.0.1:6379:6379"
volumes:
client-node-modules:
api-node-modules:
socket-node-modules: