-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.test.yaml
97 lines (91 loc) · 2.24 KB
/
compose.test.yaml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
name: blesta-test
services:
proxy:
image: traefik:3
command:
- --accessLog=true
- --entryPoints.http.address=:8080/tcp
- --entryPoints.https.address=:8443/tcp
- --providers.file.filename=/etc/traefik/dynamic.yaml
ports:
- 4200:8080/tcp
- 4201:8443/tcp
configs:
- source: traefik-config
target: /etc/traefik/dynamic.yaml
blesta:
image: ${BLESTA_IMAGE:-localhost/blesta:latest}
platform: ${BLESTA_PLATFORM:-}
develop:
watch:
- path: Dockerfile
action: rebuild
- path: docker/
action: rebuild
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
environment:
BLESTA_ADDRESS: 127.0.0.1
BLESTA_CRON_SCHEDULE: '#'
BLESTA_HOST: localhost
tmpfs:
- /run:uid=65532,gid=65532,mode=0755,exec,nodev,nosuid
- /tmp:uid=65532,gid=65532,mode=2777,noexec,nodev,nosuid
depends_on:
- mariadb
- mailpit
mariadb:
image: bitnami/mariadb:11.5
cap_drop:
- ALL
environment:
MARIADB_DATABASE: blesta
MARIADB_USER: blesta
MARIADB_PASSWORD: blesta
MARIADB_ROOT_PASSWORD: root
ports:
- 4202:3306/tcp
tmpfs:
- /bitnami/mariadb
configs:
- source: mariadb-config
target: /opt/bitnami/mariadb/conf/my_custom.cnf
mailpit:
image: axllent/mailpit:latest
environment:
MP_POP3_AUTH: blesta:blesta
networks:
default:
aliases:
- mailpit
- mailpit.local
ports:
- 4203:8025/tcp
configs:
traefik-config:
content: |
http:
routers:
blesta-http:
rule: HostRegexp(`.+`)
service: blesta
entryPoints: [http]
blesta-https:
rule: HostRegexp(`.+`)
service: blesta
entryPoints: [https]
tls: {}
services:
blesta:
loadBalancer:
servers:
- url: http://blesta:8080
mariadb-config:
content: |
[mysqld]
max_allowed_packet=128M
wait_timeout=3600