-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·46 lines (46 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·46 lines (46 loc) · 935 Bytes
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
version: "3"
services:
nginx:
image: nginx
container_name: 'nginx'
depends_on:
- frontend
- backend
links:
- backend
volumes:
- shared:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "8080:80"
frontend:
build:
context: ./frontend
container_name: "frontend"
volumes:
- shared:/app/dist
backend:
build:
context: ./backend
container_name: "backend"
ports:
- "8081:8081"
depends_on:
- db
links:
- db
db:
image: mongo
container_name: "mongodb"
volumes:
- ./docker-entrypoint.sh:/entrypoint.sh
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: db
MONGO_INITDB_COLLECTION: board
ports:
- "27017:27017"
command: mongod --auth
volumes:
shared: {}