-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yml
57 lines (53 loc) · 1.39 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.9"
services:
db:
image: postgres
restart: always
volumes:
- db_vol:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_DB: strecklistan
POSTGRES_PASSWORD: password
adminer:
image: adminer
restart: always
ports:
- 8081:8080
frontend:
build:
context: .
dockerfile: docker/dev.frontend.Dockerfile
volumes:
- .:/app
- build_vol:/out
environment:
CARGO_BUILD_TARGET_DIR: "/out/target"
entrypoint: ["trunk", "serve", "--dist", "/out/dist", "--proxy-backend", "http://backend:8000/api/"]
links:
- backend
ports:
- 8080:8080
backend:
depends_on:
- db
build:
context: .
dockerfile: docker/dev.backend.Dockerfile
volumes:
- .:/app
- build_vol:/out
links:
- db
environment:
CARGO_BUILD_TARGET_DIR: "/out/target"
DATABASE_URL: "postgres://postgres:password@db/strecklistan"
RUN_MIGRATIONS: "true"
ENABLE_STATIC_FILE_CACHE: "false"
ROCKET_ADDRESS: 0.0.0.0
ROCKET_PORT: 8000
volumes:
build_vol: {}
db_vol: {}