-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
61 lines (57 loc) · 1.04 KB
/
docker-compose.yaml
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
version: "3"
services:
nginx:
build:
context: "./nginx"
dockerfile: Dockerfile
ports:
- 80:80
container_name: nginx-container
depends_on:
- client
- api
restart: always
# networks:
# - google-docs-network
client:
build:
context: "./client"
dockerfile: Dockerfile
# ports:
# - 4173:4173
stdin_open: true
container_name: client-container
# networks:
# - google-docs-network
volumes:
- ./client:/app
depends_on:
- api
api:
build:
context: "./server"
dockerfile: Dockerfile
restart: always
# ports:
# - 4000:4000
container_name: server-container
# networks:
# - google-docs-network
volumes:
- ./server:/app
env_file:
- ./server/.env
depends_on:
- db
db:
image: mongo:latest
restart: always
# ports:
# - 27017:27017
container_name: mongodb-container
volumes:
- dbData:/data/db
env_file:
- ./db/.env
volumes:
dbData: {}