-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.15 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
version: "3.7"
networks:
tsg-network:
driver: bridge
volumes:
mongo_data:
services:
mongodb:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: tsgpassword
MONGO_INITDB_DATABSE: tsg
labels:
NAME: "mongodb"
networks:
- tsg-network
volumes:
- mongo_data:/data/db
ports:
- target: 27017
published: 27017
protocol: tcp
mode: bridge
tsg:
container_name: tsg
restart: unless-stopped
build:
context: ./client
dockerfile: Dockerfile
depends_on:
- tsg-api
labels:
NAME: "tsg"
networks:
- tsg-network
ports:
- target: 3000
published: 3000
protocol: tcp
mode: bridge
tsg-api:
container_name: tsg-api
restart: unless-stopped
build:
context: ./api
dockerfile: Dockerfile
env_file:
- ./api/.env
depends_on:
- mongodb
labels:
NAME: "tsg api"
networks:
- tsg-network
ports:
- target: 3001
published: 3001
protocol: tcp
mode: bridge