forked from utfprapps-pb/idr-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.01 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
version: "3.9"
########################### SERVICES
services:
########################### DAINF LABS API
idr-api:
image: idr-api
container_name: idr-api
build:
context: ./
dockerfile: Dockerfile
environment:
- SERVER_PORT=${SERVER_PORT}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- TZ=America/Sao_Paulo
ports:
- "8500:8500"
labels:
# Traefik Config
- "traefik.enable=true"
- "traefik.http.routers.idr-api.rule=Host(`idr-api.app.pb.utfpr.edu.br`)"
- "traefik.http.routers.idr-api.tls.certresolver=letsencrypt"
- "traefik.http.routers.idr-api.entrypoints=websecure"
restart: unless-stopped
networks:
- web
- database
########################### NETWORKS
networks:
web:
name: web
driver: bridge
external: true
attachable: true
database:
name: database
driver: bridge
external: false
attachable: true