forked from web-cat/code-workout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 965 Bytes
/
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
version: '3.8'
services:
db_dev:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: codeworkout
MYSQL_PASSWORD: codeworkout
MYSQL_DATABASE: codeworkout
ports:
- "3307:3306"
volumes:
- dbdata:/var/lib/mysql:delegated
db_test:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: codeworkout
MYSQL_PASSWORD: codeworkout
MYSQL_DATABASE: codeworkout_test
ports:
- "3308:3306"
web:
depends_on:
- "db_dev"
- "db_test"
build: .
ports:
- "9292:9292"
stdin_open: true
tty: true
environment:
DB_USERNAME: codeworkout
DB_PASSWORD: codeworkout
DB_DATABASE: codeworkout
DB_PORT: 3306
DB_HOST: db
RAILS_ENV: development
SPROCKETS_CACHE: /cache # added to support windows
volumes:
- .:/code-workout
volumes:
dbdata:
cache: # added to support windows