-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 839 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
43
44
45
46
version: '2'
services:
web:
build: .
image: ruby2crystal
command: bash -c 'npm install && npm run watch'
working_dir: /app/local
volumes:
- '.:/app/local'
app:
build: .
image: ruby2crystal
command: 'amber watch'
working_dir: /app/local
environment:
DATABASE_URL: sqlite3:./db/ruby2crystal_development.db
SMTP_URL: mail:1025
ports:
- '3000:3000'
links:
- db
- mail
volumes:
- '.:/app/local'
migrate:
build: .
image: ruby2crystal
command: bash -c 'amber db migrate seed'
working_dir: /app/local
environment:
DATABASE_URL: sqlite3:./db/ruby2crystal_development.db
volumes:
- '.:/app/local'
links:
- db
mail:
image: drujensen/mailcatcher:latest
ports:
- '1080:1080'
volumes: