-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
80 lines (74 loc) · 1.9 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
services:
rtabby:
container_name: rtabby-web-api
image: ghcr.io/clem-fern/rtabby-web-api:latest
# Minimal image without third party login
#image: ghcr.io/clem-fern/rtabby-web-api:latest-minimal
# Build image from local rtabby repository
#build:
# context: .
# args:
# - GIT_COMMIT=${GIT_COMMIT}
# Optional: Minimal image without third party login
# - FEATURE_FLAGS=-F|mysql-bundle
# If running as root, setup your user/volume owner UID and GID
#user: "1000:1000"
cap_add:
- "CAP_DAC_OVERRIDE"
cap_drop: ['ALL']
read_only: true
ports:
- "8080:8080"
environment:
- DATABASE_URL=mysql://tabby:tabby@db/tabby
#- GITHUB_APP_CLIENT_ID=
#- GITHUB_APP_CLIENT_SECRET=
#- GITLAB_APP_CLIENT_ID=
#- GITLAB_APP_CLIENT_SECRET=
#- GOOGLE_APP_CLIENT_ID=
#- GOOGLE_APP_CLIENT_SECRET=
#- MICROSOFT_APP_CLIENT_ID=
#- MICROSOFT_APP_CLIENT_SECRET=
volumes:
- ./config:/config
networks:
- frontend
- default
depends_on:
db:
condition: 'service_healthy'
db:
container_name: rtabby-database
image: mariadb:latest
cap_add:
- "CAP_CHOWN"
- "CAP_DAC_OVERRIDE"
- "CAP_SETGID"
- "CAP_SETUID"
cap_drop: ['ALL']
read_only: true
tmpfs:
- /run/mysqld/
- /tmp
volumes:
- database:/var/lib/mysql
environment:
- MARIADB_MYSQL_LOCALHOST_USER=true
- MARIADB_RANDOM_ROOT_PASSWORD=yes
- MARIADB_DATABASE=tabby
- MARIADB_USER=tabby
- MARIADB_PASSWORD=tabby
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--su-mysql", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 20
start_period: 6s
volumes:
database:
networks:
default:
name: rtabby_net_backend
internal: true
frontend:
name: rtabby_net_frontend