-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (28 loc) · 803 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (28 loc) · 803 Bytes
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
services:
web:
build:
context: .
dockerfile: naas.Dockerfile
# ports:
# - "5000:5000"
environment:
FLASK_ENV: development
TZ: Europe/Paris
deploy:
resources:
limits:
cpus: '0.5' # Limite le CPU à 0.5 (50% d'un CPU)
memory: '250M' # Limite la RAM à 250 Mo
networks:
- lvp-networks
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=Host(`${URL}`) && PathPrefix(`/api`)"
- "traefik.http.routers.web.entrypoints=websecure"
- "traefik.http.routers.web.tls.certresolver=myresolver"
- "traefik.http.services.web.loadbalancer.server.port=5000"
- "traefik.docker.network=lvp-networks"
restart: on-failure:5
networks:
lvp-networks:
external: true