-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.09 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
version: "3.9"
services:
mongodb:
container_name: mongodb
image: mongo:latest
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
backend:
build:
context: .
dockerfile: docker/dockerfile.backend
ports:
- "8000:8000"
environment:
- PORT=8000
- FRONTEND_URL_SUCCESS=http://localhost:3000
- FRONTEND_URL_FAIL=http://localhost:3000
- NODE_ENV=development
- FRONTEND_URL=http://localhost:3000
- JWT_SECRET=your_secret_change_this
- GITHUB_CALLBACK_URL=http://localhost:8000/oauth/redirect/github
- GITHUB_OAUTH_CLIENTID=your_client_id
- GITHUB_OAUTH_SECRET=your_client_secret
- DATABASE_URL=mongodb://mongodb:27017/osc-internal?replicaSet=rs0
depends_on:
- mongodb
# frontend:
# build:
# context: .
# dockerfile: docker/dockerfile.frontend
# ports:
# - "3000:3000"
# environment:
# - BACKEND_URL="http://localhost:8000"
# depends_on:
# - backend
volumes:
mongodb_data: