-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
docker-compose.yml
55 lines (51 loc) · 1.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
version: '2'
services:
db:
container_name: kiwi_db
image: mariadb:latest
command:
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
# checkov:skip=CKV_SECRET_6:Base64 High Entropy String
MYSQL_ROOT_PASSWORD: kiwi-1s-aw3s0m3
MYSQL_DATABASE: kiwi
MYSQL_USER: kiwi
MYSQL_PASSWORD: kiwi
web:
container_name: kiwi_web
depends_on:
- db
restart: always
image: kiwitcms/kiwi:latest
ports:
- 80:8080
- 443:8443
volumes:
- uploads:/Kiwi/uploads:Z
environment:
KIWI_DB_HOST: db
KIWI_DB_PORT: 3306
KIWI_DB_NAME: kiwi
KIWI_DB_USER: kiwi
KIWI_DB_PASSWORD: kiwi
cap_drop:
- ALL
# this is used only for testing purposes
# Not needed for actual deployment!
proxy:
container_name: reverse_proxy
image: nginx
volumes:
- ./tests/nginx-proxy/nginx.conf:/etc/nginx/nginx.conf:Z
- ./tests/nginx-proxy/localhost.key:/etc/nginx/localhost.key:Z
- ./tests/nginx-proxy/localhost.crt:/etc/nginx/localhost.crt:Z
ports:
- 4343:8443
depends_on:
- web
volumes:
db_data:
uploads: