-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (55 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
55 lines (55 loc) · 1.38 KB
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
version: '3'
services:
frontend:
container_name: sose-frontend
image: frontend
build:
context: frontend
dockerfile: dev.Dockerfile
labels:
- traefik.enable=true
- traefik.http.routers.frontend.rule=Host(`picories.localhost`)
- traefik.http.routers.frontend.entrypoints=web
ports:
- 8080
expose:
- 5173
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
backend:
container_name: sose-backend
image: backend
build:
context: backend
dockerfile: dev.Dockerfile
environment:
- MONGODB_CONNECTION_STRING=mongodb://mongo/mongodb
labels:
- traefik.enable=true
- traefik.http.routers.backend.rule=(Host(`picories.localhost`) && PathPrefix(`/api`))
- traefik.http.routers.backend.entrypoints=web
ports:
- 4444:4444
- 35729:35729
volumes:
- ./backend/src:/app/src
- ./backend/test:/app/test
mongo:
container_name: sose-mongo
image: mongo
ports:
- 27019:27017
load-balancer:
container_name: sose-load-balancer
image: traefik:v2.7
command:
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
ports:
- 80:80
- 8083:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro