-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (45 loc) · 878 Bytes
/
docker-compose.yaml
File metadata and controls
46 lines (45 loc) · 878 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.8"
services:
mongodb:
image: 'mongo'
volumes:
- data:/data/db
# environment:
# MONGO_INITDB_ROOT_USERNAME: ggmaddr
# MONGO_INITDB_ROOT_PASSWORD: passgg
# - MONGO_INITDB_ROOT_USERNAME=ggmaddr
env_file:
- ./env/mongo.env
server:
build: ./server
# build:
# context: ./server
# dockerfile: Dockerfile
# args:
# some-arg: 1
ports:
- '80:80'
volumes:
- logs:/app/logs
- ./server:/app
- /app/node_modules
env_file:
- ./env/server.env
depends_on:
- mongodb
client:
build: ./client
ports:
- '3000:3000'
volumes:
- ./client:/app
- /app/node_modules
#this service needs open input connection
stdin_open: true
# = -it
tty: true
depends_on:
- server
volumes:
data:
logs: