-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (66 loc) · 1.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.9"
services:
database:
image: postgres:latest
volumes:
- db-data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=keyoarbcat
ports:
- 5432:5432
healthcheck:
test: psql -U postgres -q -d postgres -c "SELECT 'ready';"
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
nodejs-express:
profiles:
- nodejs-express
- compare-frontend
- js-vue
- rust-yew
- rust-yew-solution
build: ./backend/nodejs/express
volumes:
- ./backend/nodejs/express:/code/
depends_on:
- database
expose:
- "3000"
ports:
- "3000:3000"
environment:
- PORT=3000
- JWT_SECRET=keyboardcat
- SALT_ROUNDS=10
- DB_CONNECTION=postgresql://postgres:keyoarbcat@database
api-test:
profiles:
- nodejs-express
build: ./integration-tests/backend-tests
volumes:
- ./integration-tests/backend-tests:/code/
environment:
- API_PORT=3000
- API_URI=http://rust-axum
- JWT_SECRET=keyboardcat
- DB_CONNECTION=postres://postgres:keyoarbcat@database/postgres
js-vue:
profiles:
- js-vue
- compare-frontend
build: ./frontend/js/vue
volumes:
- ./frontend/js/vue:/code/
depends_on:
- nodejs-express
expose:
- "8080"
ports:
- "8080"
environment:
- VUE_APP_API_URI=http://localhost:3000
volumes:
db-data: