-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.11 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
version: '3'
services:
frontend:
build: frontend
command: pnpm dev -p 8080
ports:
- '8080:8080'
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- api
env_file:
- ./frontend/.env.local
api:
build: api
command: pnpm dev
ports:
- '3000:3000'
- '9229:9229'
volumes:
- ./api:/app
- /app/node_modules
depends_on:
db:
condition: service_healthy
environment:
NODE_ENV: development
PORT: 3000
PGHOST: db
PGUSER: postgres
PGPASSWORD: postgres
PGDATABASE: some-db
PGPORT: 5432
AUTH_SECRET: "m0n4l!s4"
GOOGLE_CLIENT_ID: "$SLAB_GOOGLE_CLIENT_ID"
GOOGLE_CLIENT_SECRET: "$SLAB_GOOGLE_CLIENT_SECRET"
GOOGLE_CALLBACK_URL: "http://localhost:8080/google"
db:
image: postgres:12.5-alpine
environment:
POSTGRES_DB: some-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
ports:
- '15432:5432'