This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.3'
services:
db:
image: mongo
container_name: indeaa_mongo
restart: unless-stopped
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGO_INITDB_ROOT_USERNAME
MONGO_INITDB_ROOT_PASSWORD: $MONGO_INITDB_ROOT_PASSWORD
volumes:
# - ./mongo/data:/data/db - use this for windows
- ~/docker/mongo/data/db:/data/db # use this for mac and linux
ports:
- 27018:27017 # Host:Container
stdin_open: true # docker run -i
tty: true # docker run -t
server:
build:
context: .
dockerfile: docker/server/Dockerfile
container_name: indeaa_server
restart: unless-stopped
env_file:
- .env
depends_on:
- db
ports:
- 10006:3030 # Host:Container
- 9229:9229 # debug port
volumes:
# File syncing
- ./server:/app_code
# Barrier for OS node modules specific
- /app_code/node_modules
stdin_open: true # docker run -i
tty: true # docker run -t
client:
build:
context: .
dockerfile: docker/client/Dockerfile
container_name: indeaa_client
restart: unless-stopped
env_file:
- .env
ports:
- 10004:3000 # Host:Container
volumes:
# File syncing
- ./client:/app_code
# Barrier for OS node modules specific
- /app_code/node_modules
# Nextjs specific build
- /app_code/.next
stdin_open: true # docker run -i
tty: true # docker run -t
docs:
build:
context: .
dockerfile: docker/mkdocs/Dockerfile
container_name: indeaa_docs
restart: unless-stopped
env_file:
- .env
ports:
- 10005:8000
volumes:
- ./mkdocs:/mkdocs
stdin_open: true # docker run -i
tty: true # docker run -t