-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
46 lines (40 loc) · 1.24 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
version: '3.9'
name: apps
########################### EXTENSION FIELDS
# Common environment values
x-environment: &default-tz-puid-pgid
TZ: 'America/Chicago'
PUID: '1000'
PGID: '1000'
# Keys common to some of the dependent services/apps
x-common-keys-apps: &common-keys-apps
security_opt:
- no-new-privileges:true
restart: unless-stopped
########################### SERVICES
services:
webchat:
<<: *common-keys-apps
build:
context: ./
dockerfile: ./Dockerfile
container_name: webchat
working_dir: /usr/src/app
environment:
<<: *default-tz-puid-pgid
networks:
- webchat-net
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.docker.network=webchat-net
- traefik.http.services.webchat-svc.loadbalancer.server.port=9984
- traefik.http.routers.webchat-cloudflare.rule=Host(`chat.tripsit.io`)
- traefik.http.routers.webchat-cloudflare.entrypoints=websecure
- traefik.http.routers.webchat-cloudflare.tls.certresolver=letsencrypt
- traefik.http.routers.webchat-cloudflare.service=webchat-svc
- traefik.http.routers.webchat-cloudflare.middlewares=default@file
command: node ./bin/www
networks:
webchat-net:
name: webchat-net