-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-include.medienhaus-api.websecure.yml
46 lines (40 loc) · 1.31 KB
/
docker-include.medienhaus-api.websecure.yml
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
services:
# ------------------------------------------------------
# medienhaus-api
# ------------------------------------------------------
medienhaus-api:
build: ./medienhaus-api
container_name: medienhaus-api
restart: unless-stopped
depends_on:
- traefik
- matrix-synapse
environment:
API_PORT: "3000"
NODE_ENV: "development"
labels:
traefik.enable: "true"
#traefik.http.routers.medienhaus-api.entrypoints: "web"
traefik.http.routers.medienhaus-api.entrypoints: "websecure"
traefik.http.routers.medienhaus-api.tls.certresolver: "myresolver"
traefik.http.routers.medienhaus-api.rule: "Host(`api.${SPACES_HOSTNAME}`)"
#ports:
# - "3000:3000"
volumes:
- ./config/medienhaus-api.config.js:/usr/src/app/config.js:ro
- ./medienhaus-api:/usr/src/app:rw
- medienhaus-api--node_modules:/usr/src/app/node_modules:rw
# ------------------------------------------------------
# networks (example)
# ------------------------------------------------------
#networks:
# default:
# name: medienhaus-spaces
# driver: bridge
# external: true
# ------------------------------------------------------
# volumes
# ------------------------------------------------------
volumes:
medienhaus-api--node_modules:
driver: local