-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
41 lines (38 loc) · 740 Bytes
/
compose.yml
File metadata and controls
41 lines (38 loc) · 740 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
services:
mail:
image: schickling/mailcatcher:latest
ports:
- "1025:1025"
- "1080:1080"
db:
image: postgres:latest
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
app:
build:
context: .
dockerfile: Dockerfile
target: development
command: cargo watch -x run
tty: true
stdin_open: true
volumes:
- .:/opt/app
- cargo-cache:/usr/local/cargo/registry
- target-cache:/opt/app/target
ports:
- "3000:3000"
depends_on:
- db
- mail
environment:
EDITOR: vi
volumes:
db-data:
cargo-cache:
target-cache: