-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.03 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
version: '3'
services:
proxy:
image: traefik
command: --web --docker --logLevel=INFO
restart: always
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml
client:
build: ./client
restart: always
ports:
- "8080"
volumes:
- ./client:/app
labels:
- "traefik.frontend.rule=PathPrefix:/"
server:
build: ./server
restart: always
ports:
- "8000"
volumes:
- ./server:/app
labels:
- "traefik.frontend.rule=PathPrefix:/api"
links:
- database
database:
image: mongo:latest
restart: always
container_name: "mongodb"
volumes:
- ./data:/data/db
ports:
- 27017:27017