-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.03 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
version: '3'
volumes:
bundle:
database:
services:
web:
working_dir: /home/app/src/playbook-website
image: ${APP_IMAGE_REPO:-image-registry.powerapp.cloud/playbook/playbook}:${APP_IMAGE_TAG:-local}
build:
context: .
target: base
args:
BUILDKIT_INLINE_CACHE: "1"
cache_from:
- image-registry.powerapp.cloud/playbook/playbook:${CACHE_TAG:-local}
- image-registry.powerapp.cloud/playbook/playbook:main
volumes:
- .:/home/app/src
- bundle:/usr/local/rvm/gems
ports:
- "8089:3000"
depends_on:
db:
condition: service_healthy
db:
platform: linux/x86_64
image: percona:8.0.36-28@sha256:1128d56e64711ed65cb0c57041048967ee5875a2167d708d327885fd1f995fa0
init: true
ports:
- 3306
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: password
healthcheck:
test: ["CMD", "mysql", "-u", "root", "-ppassword", "-e", "SHOW DATABASES;"]
interval: 5s
timeout: 2s
retries: 5
start_period: 20s