-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 836 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 836 Bytes
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
version: '3.3'
services:
db:
image: mysql:8.0.21
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: picktunes
MYSQL_DATABASE: PICKTUNES
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-ppicktunes"]
interval: 10s
timeout: 5s
retries: 5
picktunes:
build:
context: .
image: picktunes:latest
container_name: picktunes
depends_on:
db:
condition: service_healthy
ports:
- "4567:4567"
restart: always
env_file:
- .env
environment:
DATABASE_URL: mysql2://root:picktunes@db/PICKTUNES
APP_ENV: ${APP_ENV:-development}
RACK_ENV: ${APP_ENV:-development}
volumes:
db_data: {}