-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 902 Bytes
/
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
version: "3.9"
services:
backend:
container_name: backend
build:
context: ./backend
ports:
- 8080:8080
depends_on:
- mongodb
volumes:
- ./backend:/app
environment:
- MINIGOLF_DB_USER=root
- MINIGOLF_DB_PASSWORD=rootpassword
- MINIGOLF_DB_PROTOCOL=mongodb
- MINIGOLF_DB_HOST=mongodb:27017
- MINIGOLF_JWT_SECRET=super_secret_jwt_secret
frontend:
container_name: frontend
build:
context: ./frontend
ports:
- 3000:3000
volumes:
- ./frontend:/app
environment:
- DEV_BACKEND_URL=backend:8080
mongodb:
container_name: mongodb
image: mongo:latest
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=rootpassword
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
volumes:
mongodb_data_container: