forked from CodeLanka/ElePath-Ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 821 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 821 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
36
37
38
39
40
41
42
version: '2.1'
networks:
backend:
driver: bridge
volumes:
db_data:
services:
db:
image: mysql:5.7
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
ports:
- '3307:3306'
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=elepath_localdocker
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u", "root"]
timeout: 5s
retries: 12
volumes:
- db_data:/var/lib/mysql
networks:
- backend
app:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/myapp
ports:
- '4000:3000'
depends_on:
db:
condition: service_healthy
environment:
- RACK_ENV=localdocker
networks:
- backend