forked from steve-community/steve
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (43 loc) · 1.14 KB
/
compose.yaml
File metadata and controls
45 lines (43 loc) · 1.14 KB
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
volumes:
db-data:
services:
db:
# Pinning MariaDB to point release 10.4.30 works around the issues with the
# database migrations seen with 10.4.31 in issue #1212.
#
# TODO: Get database migrations to work with the latest point releases of
# MariaDB 10.4.
image: mariadb:10.4.30
restart: unless-stopped
#ports:
# - '3306:3306' # expose DB to host if needed only
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: stevedb
MYSQL_USER: steve
MYSQL_PASSWORD: changeme
volumes:
- db-data:/var/lib/mysql
- ./docker/mysql-conf.d:/etc/mysql/conf.d:ro
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--protocol=tcp", "-h", "127.0.0.1", "-usteve", "-pchangeme"]
timeout: 3s
retries: 20
app:
build:
context: .
image: steve:test
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DB_HOST: db #host.docker.internal
DB_PORT: 3306
DB_DATABASE: stevedb
DB_USER: steve
DB_PASSWORD: changeme
PORT: 8180
ports:
- '8180:8180'
- '8443:8443'