-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.18 KB
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
services:
db:
image: postgres:17
ports:
- 5432:5432
volumes:
- ../bookmarket-db-data:/var/lib/postgresql/data
env_file:
- ./apps/server/.env
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'bokdol', '-d', 'bookmarket']
interval: 10s
timeout: 5s
retries: 5
server:
image: ghcr.io/ericjypark/bookmarket-server:latest
build:
context: .
dockerfile: apps/server/Dockerfile
ports:
- 8000:8000
env_file:
- ./apps/server/.env
depends_on:
db:
condition: service_healthy
web:
image: ghcr.io/ericjypark/bookmarket-web:latest
build:
context: .
dockerfile: apps/web/Dockerfile
args:
NEXT_PUBLIC_BASE_URL: http://server:8000/
NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${NEXT_PUBLIC_GOOGLE_CLIENT_ID}
NEXT_PUBLIC_GITHUB_CLIENT_ID: ${NEXT_PUBLIC_GITHUB_CLIENT_ID}
NEXT_PUBLIC_GITHUB_REDIRECT_URI: ${NEXT_PUBLIC_GITHUB_REDIRECT_URI}
NEXT_PUBLIC_DOMAIN: ${NEXT_PUBLIC_DOMAIN}
NEXT_PUBLIC_UMAMI_WEBSITE_ID: ${NEXT_PUBLIC_UMAMI_WEBSITE_ID}
ports:
- 5000:3000
env_file:
- ./apps/web/.env
depends_on:
- server