-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (40 loc) · 941 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
45
version: "3.0"
services:
setup:
build: .
command: "shards install"
user: "1000:1000"
volumes:
- .:/usr/src
test_mysql:
build: .
command: "sh -c 'crystal run --no-debug test/*_test.cr test/**/*_test.cr'"
environment:
DATABASE_URL: "mysql://root:secret@mysql/rome_test"
volumes:
- .:/usr/src
depends_on:
- mysql
test_postgresql:
build: .
command: "sh -c 'crystal run --no-debug test/*_test.cr test/**/*_test.cr'"
environment:
DATABASE_URL: "postgres://postgres:secret@postgresql/rome_test"
volumes:
- .:/usr/src
depends_on:
- postgresql
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: rome_test
ports:
- "3306:3306"
postgresql:
image: postgres:11-alpine
environment:
POSTGRES_DB: rome_test
POSTGRES_PASSWORD: secret
ports:
- "5432:5432"