-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
152 lines (146 loc) · 4.44 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
db2:
image: mysql:8.0.33@sha256:ea68e51ffe9b96fef6076f1218af11301aeaf13c6201e0ec9aaef5791d5ddc5d
# The lumen library seems to use an older mysql client which is not able to connect if mysql uses the newer caching_sha2_password authentication plugin.
# Therefore we need to override the mysql starting command to set a config option to use the older password authentication plugin.
# We need to call the entrypoint script manually because that one will also initialize the database, if one doesn't already exist.
command: bash -c "chmod -R 0777 /var/www/html/storage/logs && exec bash ./entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
volumes:
- dbdata:/var/lib/mysql
- ./data/mysql_conf:/etc/mysql/conf.d
- ./logs/mysql:/var/www/html/storage/logs
environment:
# Note: the config only seems to be updated when the container is initially created.
# If the db config needs to be changed then the db image and volume needs to be destroyed first.
MYSQL_DATABASE: "${MYSQL_DB}"
MYSQL_ROOT_HOST: "db2"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASS}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
networks:
- makeradmin
api:
image: makeradmin/api:1.0
build:
context: ./api
volumes:
- ./logs/api:/work/logs
- ./data/licenses:/work/data/licenses
depends_on:
- db2
networks:
- makeradmin
environment:
MYSQL_HOST: db2
MYSQL_DB:
MYSQL_PORT:
MYSQL_USER:
MYSQL_PASS:
ELKS46_API_USER:
ELKS46_API_KEY:
HOST_PUBLIC: "${PROTOCOL}://${HOST_PUBLIC}"
HOST_FRONTEND: "${PROTOCOL}://${HOST_FRONTEND}"
HOST_BACKEND: "${PROTOCOL}://${HOST_BACKEND}"
VIRTUAL_HOST: "${HOST_BACKEND}"
LETSENCRYPT_HOST: "${HOST_BACKEND}"
LETSENCRYPT_EMAIL: "${ADMIN_EMAIL}"
STRIPE_PRIVATE_KEY:
STRIPE_PUBLIC_KEY:
STRIPE_SIGNING_SECRET:
STRIPE_CURRENCY:
ADMIN_EMAIL:
CORS_ALLOWED_ORIGINS: "${PROTOCOL}://${HOST_FRONTEND},${PROTOCOL}://${HOST_PUBLIC},${PROTOCOL}://${HOST_BACKEND}"
ACCESSY_CLIENT_ID:
ACCESSY_CLIENT_SECRET:
ACCESSY_LABACCESS_GROUP:
ACCESSY_SPECIAL_LABACCESS_GROUP:
ACCESSY_DO_MODIFY:
FIRSTRUN_AUTO_ADMIN_FIRSTNAME:
FIRSTRUN_AUTO_ADMIN_LASTNAME:
FIRSTRUN_AUTO_ADMIN_EMAIL:
FIRSTRUN_AUTO_ADMIN_PASSWORD:
MAKERSPACE_LOCAL_TIMEZONE:
email-dispatcher:
image: makeradmin/api:1.0
build:
context: ./api
volumes:
- ./logs/email_dispatcher:/work/logs
command:
- "/work/dispatch_emails.sh"
environment:
MYSQL_HOST: db2
MYSQL_DB:
MYSQL_PORT:
MYSQL_USER:
MYSQL_PASS:
MAILGUN_DOMAIN:
MAILGUN_KEY:
MAILGUN_FROM:
MAILGUN_TO_OVERRIDE:
HOST_PUBLIC: "${PROTOCOL}://${HOST_PUBLIC}"
HOST_FRONTEND: "${PROTOCOL}://${HOST_FRONTEND}"
depends_on:
- api
networks:
- makeradmin
accessy-syncer:
image: makeradmin/api:1.0
build:
context: ./api
volumes:
- ./logs/accessy_syncer:/work/logs
command:
- "/work/accessy_syncer.sh"
environment:
MYSQL_HOST: db2
MYSQL_DB:
MYSQL_PORT:
MYSQL_USER:
MYSQL_PASS:
MAILGUN_DOMAIN:
MAILGUN_KEY:
MAILGUN_FROM:
MAILGUN_TO_OVERRIDE:
HOST_PUBLIC: "${PROTOCOL}://${HOST_PUBLIC}"
HOST_FRONTEND: "${PROTOCOL}://${HOST_FRONTEND}"
ACCESSY_CLIENT_ID:
ACCESSY_CLIENT_SECRET:
ACCESSY_LABACCESS_GROUP:
ACCESSY_SPECIAL_LABACCESS_GROUP:
ACCESSY_DO_MODIFY:
depends_on:
- api
networks:
- makeradmin
public:
image: makeradmin/public:1.0
volumes:
- "./.webshop_product_images:/work/static/product_images"
build:
context: ./public
environment:
APIGATEWAY: "api"
HOST_BACKEND: "${PROTOCOL}://${HOST_BACKEND}"
HOST_PUBLIC: "${PROTOCOL}://${HOST_PUBLIC}"
STRIPE_PUBLIC_KEY:
VIRTUAL_HOST: "${HOST_PUBLIC}"
LETSENCRYPT_HOST: "${HOST_PUBLIC}"
LETSENCRYPT_EMAIL: "${ADMIN_EMAIL}"
networks:
- makeradmin
admin:
image: makeradmin/admin:1.0
build:
context: ./admin
environment:
HOST_BACKEND: "${PROTOCOL}://${HOST_BACKEND}"
VIRTUAL_HOST: "${HOST_FRONTEND}"
LETSENCRYPT_HOST: "${HOST_FRONTEND}"
LETSENCRYPT_EMAIL: "${ADMIN_EMAIL}"
networks:
- makeradmin
networks:
makeradmin:
volumes:
dbdata: