forked from collinbarrett/FilterLists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (80 loc) · 2.33 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
version: "3.7"
services:
nginx:
image: nginx:alpine
restart: always
networks:
- reverse-proxy
depends_on:
- web
- api
volumes:
- ./ops/nginx/svr-includes:/etc/nginx/svr-includes:ro
web:
image: collinbarrett/filterlists.web:latest
restart: always
build:
context: .
dockerfile: src/FilterLists.Web/Dockerfile
target: final
networks:
- reverse-proxy
api:
image: collinbarrett/filterlists.api:latest
restart: always
build:
context: .
dockerfile: src/FilterLists.Api/Dockerfile
target: final
networks:
- reverse-proxy
- api
depends_on:
- mariadb
environment:
ConnectionStrings__FilterListsConnection: ${API_CONNECTION_STRING}
mariadb:
image: mariadb:10
restart: always
networks:
- api
volumes:
- data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${API_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${API_MYSQL_DATABASE}
MYSQL_USER: ${API_MYSQL_USER}
MYSQL_PASSWORD: ${API_MYSQL_PASSWORD}
command:
[
"mysqld",
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_520_ci"
]
agent:
image: collinbarrett/filterlists.agent:latest
build:
context: .
dockerfile: src/FilterLists.Agent/Dockerfile
target: final
volumes:
- archives:/app/archives
environment:
ApplicationInsights__InstrumentationKey: ${AGENT_APPLICATION_INSIGHTS_INSTRUMENTATION_KEY}
Archive__RepositoryDirectory: ${AGENT_ARCHIVE_GIT_REPOSITORY_DIRECTORY}
Archive__SignatureName: ${AGENT_ARCHIVE_GIT_SIGNATURE_NAME}
Archive__SignatureEmail: ${AGENT_ARCHIVE_GIT_SIGNATURE_EMAIL}
Archive__CommitMessageSuffix: ${AGENT_ARCHIVE_GIT_COMMIT_MESSAGE_SUFFIX}
ConnectionString__FilterListsConnection: ${API_CONNECTION_STRING}
FilterListsApi__BaseUrl: ${AGENT_FILTERLISTS_API_BASE_URL}
FilterListsApi__ClientUserAgent: ${AGENT_FILTERLISTS_API_CLIENT_USER_AGENT}
GitHub__ProductHeaderValue: ${AGENT_GITHUB_PRODUCT_HEADER_VALUE}
GitHub__PersonalAccessToken: ${AGENT_GITHUB_PERSONAL_ACCESS_TOKEN}
GitHub__RepositoryOwner: ${AGENT_GITHUB_REPOSITORY_OWNER}
GitHub__Repository: ${AGENT_GITHUB_REPOSITORY}
networks:
reverse-proxy:
api:
volumes:
data:
archives: