-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1022 Bytes
/
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
version: "3"
services:
client:
container_name: client
build:
context: .
dockerfile: Dockerfile
target: client
restart: always
env_file:
- docker.env
ports:
- "127.0.0.1:48002:80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.bookme_client.rule=PathPrefix(`/bookme`)"
- "traefik.http.routers.bookme_client.entrypoints=web,websecure"
bookme:
container_name: bookme
build:
context: .
dockerfile: Dockerfile
target: backend
restart: always
env_file:
- docker.env
ports:
- "127.0.0.1:48001:5000"
links:
- mongo-bookme
labels:
- "traefik.enable=true"
- "traefik.http.routers.bookme_api.rule=PathPrefix(`/bookme/api`)"
- "traefik.http.routers.bookme_api.entrypoints=web,websecure"
mongo-bookme:
container_name: mongo-bookme
image: mongo
volumes:
- /opt/bookme/mongo:/data/db
networks:
default:
external:
name: traefik