-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.prod.yml
91 lines (89 loc) · 2.84 KB
/
docker-compose.prod.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
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# docker production yaml config
# docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
version: '3.3'
services:
mssql:
environment:
SA_PASSWORD: #{MSSQL_SA_PASSWORD}#
#skywalking-ui:
# environment:
# VIRTUAL_HOST: apm.siegrain.wang
# VIRTUAL_PORT: 8080
# LETSENCRYPT_HOST: apm.siegrain.wang
# # worked but admin still loginable
# security.user.#{SW_USERNAME}#.password: #{SW_PASSWORD}#
# volumes:
# # not work
# - ./skywalking-ui-config/webapp.prod.yml:/apache-skywalking-apm-bin/webapp/webapp.yml:ro
ancorazor:
image: siegrainwong/ancorazor:#{Build.BuildNumber}#
environment:
VIRTUAL_HOST: siegrain.wang
VIRTUAL_PORT: 8088
LETSENCRYPT_HOST: siegrain.wang
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES: SkyAPM.Agent.AspNetCore
SKYWALKING__SERVICENAME: ancorazor
depends_on:
- mssql
links:
- mssql
restart: always
volumes:
- ancorazor_assets:/app/Upload:rw
nginx-proxy:
container_name: nginx-proxy
image: jwilder/nginx-proxy:alpine
restart: always
ports:
- 80:80
- 443:443
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- ./htpasswd:/etc/nginx/htpasswd:rw # basic auth for skywalking
- /var/run/docker.sock:/tmp/docker.sock
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
restart: always
environment:
DEFAULT_EMAIL: [email protected]
NGINX_PROXY_CONTAINER: nginx-proxy
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
portainer:
environment:
VIRTUAL_HOST: pt.siegrain.wang
VIRTUAL_PORT: 9000
LETSENCRYPT_HOST: pt.siegrain.wang
volumes:
conf:
vhost:
html:
dhparam:
certs:
ancorazor_assets: