-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.mysql.yml
More file actions
48 lines (47 loc) · 1 KB
/
docker-compose.mysql.yml
File metadata and controls
48 lines (47 loc) · 1 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
46
47
48
---
services:
gemstash:
build: .
image: zappi/gemstash:2.0.0
environment:
RACK_ENV: production
GEMSTASH_DB_ADAPTER: mysql2
GEMSTASH_DB_USERNAME: root
GEMSTASH_DB_PASSWORD: sekretpassword
GEMSTASH_DB_DATABASE: gemstash
GEMSTASH_DB_HOST: mysql
GEMSTASH_DB_PORT: 3306
GEMSTASH_PUMA_THREADS: 4
ports:
- 9292:9292
volumes:
- gemstash_data:/home/gemstash/data
depends_on:
mysql:
condition: service_healthy
mysql:
image: mariadb:11
volumes:
- mysql_data:/var/lib/mysql
expose:
- 3306
environment:
- MARIADB_ROOT_PASSWORD=sekretpassword
- MARIADB_DATABASE=gemstash
healthcheck:
test:
- CMD
- mariadb
- --user=root
- --password=sekretpassword
- --execute=select 1
- --host=127.0.0.1
- --port=3306
- gemstash
interval: 1s
retries: 60
volumes:
gemstash_data:
driver: local
mysql_data:
driver: local