blob: d73f254c9345ba331059a3a65701569de8f9ecc3 (
plain)
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
|
version: "3.6"
services:
postgres:
image: postgres:12
environment:
POSTGRES_PASSWORD: postgres
ports:
- 5433:5432
volumes:
- dbdata:/var/lib/postgresql/data
postgrest_api:
build: ./postgrest
environment:
JWT_SECRET: ${JWT_SECRET}
POSTGREST_PASSWORD: ${POSTGREST_PASSWORD}
depends_on:
- postgres
ports:
- 3000:3000
login_service:
build: ./login-service
command: npm run dev
environment:
JWT_SECRET: ${JWT_SECRET}
depends_on:
- postgrest_api
ports:
- 4000:4000
volumes:
- ./login-service/src:/app/src
frontend:
build: ./frontend
environment:
GOOGLE_OAUTH_ID: ${GOOGLE_OAUTH_ID}
LOGIN_API_URL: http://localhost:4000
POSTGREST_API_URL: http://localhost:3000
depends_on:
- login_service
ports:
- 5000:5000
- 40000:40000
volumes:
- ./frontend/src:/app/src
volumes:
dbdata:
|