-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-release.yml
124 lines (118 loc) · 4.06 KB
/
docker-compose-release.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
114
115
116
117
118
119
120
121
122
123
124
version: "3.7"
services:
mariadb:
image: mariadb:latest
ports:
- 3306:3306
volumes:
- ./etc/mariadb/init.sql:/docker-entrypoint-initdb.d/init.sql
- balasolu-db:/var/lib/mysql
secrets:
- sql-password-root
- sql-username
- sql-password
environment:
- MARIADB_USER_FILE=/run/secrets/sql-username
- MARIADB_PASSWORD_FILE=/run/secrets/sql-password
- MARIADB_ROOT_PASSWORD_FILE=/run/secrets/sql-password-root
restart: always
web:
depends_on:
- mariadb
build:
context: .
dockerfile: etc/docker/web-release.Dockerfile
secrets:
- sql-server
- sql-username
- sql-password
- sql-database
- smtp-host
- smtp-port
- smtp-username
- smtp-password
- smtp-fromname
- smtp-fromaddress
- twitter-key
- twitter-keysecret
- twitter-bearertoken
- discord-clientid
- discord-clientsecret
- paypal-clientid
- paypal-clientsecret
environment:
- APPLICATION__SQLCLIENTOPTIONS__SERVER=/run/secrets/sql-server
- APPLICATION__SQLCLIENTOPTIONS__USERNAME=/run/secrets/sql-username
- APPLICATION__SQLCLIENTOPTIONS__PASSWORD=/run/secrets/sql-password
- APPLICATION__SQLCLIENTOPTIONS__DATABASE=/run/secrets/sql-database
- APPLICATION__SMTPCLIENTOPTIONS__HOST=/run/secrets/smtp-host
- APPLICATION__SMTPCLIENTOPTIONS__PORT=/run/secrets/smtp-port
- APPLICATION__SMTPCLIENTOPTIONS__USERNAME=/run/secrets/smtp-username
- APPLICATION__SMTPCLIENTOPTIONS__PASSWORD=/run/secrets/smtp-password
- APPLICATION__SMTPCLIENTOPTIONS__FROMNAME=/run/secrets/smtp-fromname
- APPLICATION__SMTPCLIENTOPTIONS__FROMADDRESS=/run/secrets/smtp-fromaddress
- APPLICATION__TWITTEROPTIONS__KEY=/run/secrets/twitter-key
- APPLICATION__TWITTEROPTIONS__KEYSECRET=/run/secrets/twitter-keysecret
- APPLICATION__TWITTEROPTIONS__BEARERTOKEN=/run/secrets/twitter-bearertoken
- APPLICATION__DISCORDOPTIONS__CLIENTID=/run/secrets/discord-clientid
- APPLICATION__DISCORDOPTIONS__CLIENTSECRET=/run/secrets/discord-clientsecret
- APPLICATION__PAYPALOPTIONS__CLIENTID=/run/secrets/paypal-clientid
- APPLICATION__PAYPALOPTIONS__CLIENTSECRET=/run/secrets/paypal-clientsecret
expose:
- 5000
restart: always
nginx:
depends_on:
- mariadb
- web
build:
context: .
dockerfile: etc/docker/nginx-release.Dockerfile
ports:
- 80:80
- 443:443
volumes:
- balasolu-ssl:/etc/letsencrypt
restart: always
secrets:
sql-server:
file: secrets/sql-server
sql-username:
file: secrets/sql-username
sql-password:
file: secrets/sql-password
sql-password-root:
file: secrets/sql-password-root
sql-database:
file: secrets/sql-database
smtp-host:
file: secrets/smtp-host
smtp-port:
file: secrets/smtp-port
smtp-username:
file: secrets/smtp-username
smtp-password:
file: secrets/smtp-password
smtp-fromname:
file: secrets/smtp-fromname
smtp-fromaddress:
file: secrets/smtp-fromaddress
twitter-key:
file: secrets/twitter-key
twitter-keysecret:
file: secrets/twitter-keysecret
twitter-bearertoken:
file: secrets/twitter-bearertoken
discord-clientid:
file: secrets/discord-clientid
discord-clientsecret:
file: secrets/discord-clientsecret
paypal-clientid:
file: secrets/paypal-clientid
paypal-clientsecret:
file: secrets/paypal-clientsecret
volumes:
balasolu-db:
external: true
balasolu-ssl:
external: true