-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (48 loc) · 1.14 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
version: '3.8'
services:
traefik:
container_name: traefik-container-vaahana
image: traefik:v2.10.6
command:
# - --accesslog=true
- --api.insecure=true
- --providers.docker
- --entrypoints.web.address=:80
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- vaahana-network
server:
container_name: server-container-vaahana
build:
context: ./server
dockerfile: Dockerfile
env_file: ./server/.env
volumes:
- ./server:/usr/src/app
- /usr/src/app/node_modules
labels:
- traefik.http.routers.server.rule=Host(`server.vaahana.localhost`)
networks:
- vaahana-network
client:
container_name: client-container-vaahana
build:
context: ./client
dockerfile: Dockerfile
env_file: ./client/.env
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
labels:
- traefik.http.routers.client.rule=Host(`client.vaahana.localhost`)
depends_on:
- server
networks:
- vaahana-network
networks:
vaahana-network:
driver: bridge