-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (105 loc) · 2.57 KB
/
docker-compose.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3.7"
services:
logging:
container_name: tisronclicom-logging
build: ./logging
ports:
- "12201:12201/udp"
environment:
PORT: 12201
APPINSIGHTS_PERFORMANCE_METRICS: 0
APPINSIGHTS_INSTRUMENTATIONKEY: /run/secrets/APPINSIGHTS_INSTRUMENTATIONKEY
secrets:
- APPINSIGHTS_INSTRUMENTATIONKEY
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
entrypoint: /var/logging/start.sh
node:
container_name: tisronclicom-node
build:
context: ./node
args:
USE_AZURE_FILE_STORAGE: 1
depends_on:
- logging
networks:
- tis.roncli.com-network
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
PORT: 3030
NODE_ENV: production
APPINSIGHTS_INSTRUMENTATIONKEY: /run/secrets/APPINSIGHTS_INSTRUMENTATIONKEY
FILES_URI: /run/secrets/FILES_URI
FILES_USERNAME: /run/secrets/FILES_USERNAME
FILES_PASSWORD: /run/secrets/FILES_PASSWORD
USE_AZURE_FILE_STORAGE: 1
secrets:
- APPINSIGHTS_INSTRUMENTATIONKEY
- FILES_URI
- FILES_USERNAME
- FILES_PASSWORD
restart: always
entrypoint: /var/www/start.sh
privileged: true
nginx:
container_name: tisronclicom-nginx
build: ./nginx
depends_on:
- node
- logging
networks:
- tis.roncli.com-network
ports:
- "80:80"
- "443:443"
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
DOMAIN: tis.roncli.com
PROXY_PORT: 3030
restart: always
volumes:
- certbot-conf:/etc/letsencrypt:rw
- certbot-work:/var/certbot/work:rw
- nginx-work:/var/nginx/work:rw
entrypoint: /var/nginx/start.sh
certbot:
container_name: tisronclicom-certbot
build: ./certbot
depends_on:
- nginx
- logging
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
DOMAIN: tis.roncli.com
EMAIL: [email protected]
restart: always
volumes:
- certbot-conf:/etc/letsencrypt:rw
- certbot-work:/var/certbot/work:rw
entrypoint: /var/certbot/start.sh
networks:
tis.roncli.com-network:
driver: bridge
volumes:
certbot-conf:
certbot-work:
nginx-work:
secrets:
APPINSIGHTS_INSTRUMENTATIONKEY:
file: ./secrets/APPINSIGHTS_INSTRUMENTATIONKEY
FILES_URI:
file: ./secrets/FILES_URI
FILES_USERNAME:
file: ./secrets/FILES_USERNAME
FILES_PASSWORD:
file: ./secrets/FILES_PASSWORD