-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.dev.yml
58 lines (53 loc) · 1.04 KB
/
docker-compose.dev.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
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.5"
services:
db:
image: postgres:12
container_name: "thoth_db"
ports:
- "5432:5432"
volumes:
- ./db/_data:/var/lib/postgresql/data
env_file:
- .env
redis:
image: redis:alpine
container_name: "thoth_redis"
ports:
- "6379:6379"
graphql-api:
build:
context: .
dockerfile: Dockerfile.dev
container_name: "thoth_graphql_api"
ports:
- "8000:8000"
command: ["cargo", "run", "init"]
env_file:
- .env
depends_on:
- db
export-api:
build:
context: .
dockerfile: Dockerfile.dev
container_name: "thoth_export_api"
ports:
- "8181:8181"
command: ["cargo", "run", "start", "export-api"]
env_file:
- .env
depends_on:
- graphql-api
app:
build:
context: .
dockerfile: Dockerfile.dev
container_name: "thoth_app"
ports:
- "8080:8080"
command: ["cargo", "run", "start", "app"]
env_file:
- .env
depends_on:
- graphql-api
- export-api