-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
86 lines (82 loc) · 2.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3"
services:
oracle:
image: gvenzl/oracle-xe:18
# connectiong to the DB from inside the container:
# sqlplus videoapi/videoapi@localhost:1521/XEPDB1
# notice the syntax for the videoapi server is slightly different:
# oracle://videoapi:videoapi@oracle:1521/XEPDB1
environment:
ORACLE_PASSWORD: password
APP_USER: videoapi
APP_USER_PASSWORD: videoapi
#ports:
#- "1521:1521"
volumes:
- oracle:/opt/oracle/oradata
videoapi:
build: .
environment:
JWT_KEY: "secretJwtKey"
API_KEY: "ApiKeyForAlertManagerWebhook"
# Remove for production
SUPER_PASSWORD: "superPassword"
DEBUG: "true"
FINALDIR: "/opt/storage/final"
TMPDIR: "/opt/storage/tmp"
USEFFMPEG: "true"
ports:
- "8080:8080"
command:
- "oracle://videoapi:videoapi@oracle:1521/XEPDB1?TRACE FILE=trace.log"
volumes:
- files:/opt/storage
restart: unless-stopped
traefik:
image: "traefik:v2.10"
container_name: traefik
restart: unless-stopped
hostname: traefik
user: "1000:1000"
ports:
- "80:80"
- "443:443"
cap_add:
- NET_BIND_SERVICE
volumes:
- traefik:/etc/traefik
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.http.tls.certResolver=myresolver
- --entrypoints.websecure.http.tls.domains[0].main=sample.url.es
- --entrypoints.websecure.http.tls.domains[0].sans=www.sample.url.es
- --providers.file.filename=/etc/traefik/dynamic.yaml
- --certificatesResolvers.myresolver.acme.email=soporte@warpcom.com
- --certificatesResolvers.myresolver.acme.keyType=RSA4096
- --certificatesresolvers.myresolver.acme.tlschallenge=true
- --certificatesResolvers.myresolver.acme.httpChallenge=true
- --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
- --certificatesresolvers.myresolver.acme.caserver=https://acme-v02.api.letsencrypt.org/directory
- --certificatesresolvers.myresolver.acme.storage=/etc/traefik/acme.json
volumes:
oracle:
driver: local
driver_opts:
type: none
device: /datos/oracle
o: bind
files:
driver: local
driver_opts:
type: none
device: /datos/media
o: bind
traefik:
driver: local
driver_opts:
type: none
device: /datos/traefik
o: bind