-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.43 KB
/
docker-compose.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
version: "3"
services:
dipull-db:
image: mongodb/mongodb-community-server:5.0-ubuntu2004
container_name: dipull-db
ports:
- "27017:27017"
volumes:
- ./data:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
environment:
MONGODB_INITDB_ROOT_USERNAME: root
MONGODB_INITDB_ROOT_PASSWORD: example
dipull:
image: oven/bun:1.2.0
container_name: dipull
working_dir: /dipull
volumes:
- ./dipull:/dipull
ports:
- "3000:3000"
command: ["sh", "-c", "bun install && bun run dev"]
environment:
NODE_ENV: development
DIPULL_ENV: true
NEXT_PUBLIC_DIMIGOIN_URI: http://localhost:3001
NEXT_PUBLIC_DIMIGOIN_KEY: 661f3ae926aa65d7d37f4dbd
JWT_SECRET: example
CRON_SECRET: example
TEACHERS_CODE: example
MONGODB_URI: mongodb://root:example@dipull-db:27017/dipull?authSource=admin
env_file:
- .env
dipull-auth:
image: oven/bun:1.2.0
container_name: dipull-auth
working_dir: /dipull-auth
volumes:
- ./dipull-auth:/dipull-auth
ports:
- "3001:3000"
command: ["sh", "-c", "bun install && bun run dev"]
environment:
NODE_ENV: development
DIPULL_ENV: true
NEXT_PUBLIC_DIMIGOIN_KEY: 661f3ae926aa65d7d37f4dbd
JWT_SECRET: example
MONGODB_URI: mongodb://root:example@dipull-db:27017/dipull-auth?authSource=admin
env_file:
- .env