forked from JRMurr/gdlk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.28 KB
/
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
46
47
48
49
50
51
52
version: "3.7"
# Use these instead of the local directory for building the projects
# to prevent the containers from fighting with external build tools
volumes:
api_build:
frontend_core_build:
frontend_wasm_build:
frontend_wasm_pkg:
frontend_node_modules:
services:
db:
image: postgres:12-alpine
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
command: postgres -c log_statement=all
ports:
- "5432:5432"
api:
image: gcr.io/gdlkit/gdlk-api:${DOCKER_TAG}
command: cargo make -p docker start
tty: true # Colorize output
volumes:
- ./:/app:rw
- api_build:/app/target
depends_on:
- db
environment:
RUST_BACKTRACE: 1
RUST_LOG: ${RUST_LOG:-info}
ports:
- "8000:8000"
frontend:
image: gcr.io/gdlkit/gdlk-frontend:${DOCKER_TAG}
command: ./docker/run_frontend.sh
init: true # Needed to kill the relay compiler background process
tty: true # Colorize output
environment:
GDLK_API_HOST: http://api:8000
HTTPS: "true"
volumes:
- ./:/app:rw
- frontend_core_build:/app/target
- frontend_wasm_build:/app/wasm/target
- frontend_wasm_pkg:/app/wasm/pkg
- frontend_node_modules:/app/frontend/node_modules
ports:
- "3000:3000"