-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
postgres:
image: postgres:16-alpine
container_name: kitchenasty-db
environment:
POSTGRES_USER: kitchenasty
POSTGRES_PASSWORD: kitchenasty
POSTGRES_DB: kitchenasty
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kitchenasty"]
interval: 5s
timeout: 5s
retries: 5
server:
build:
context: .
dockerfile: packages/server/Dockerfile
container_name: kitchenasty-server
ports:
- "3000:3000"
environment:
PORT: 3000
NODE_ENV: development
DATABASE_URL: postgresql://kitchenasty:kitchenasty@postgres:5432/kitchenasty
CORS_ORIGINS: http://localhost:5173,http://localhost:5174
JWT_SECRET: change-this-to-a-random-secret
JWT_EXPIRES_IN: 7d
depends_on:
postgres:
condition: service_healthy
admin:
build:
context: .
dockerfile: packages/admin/Dockerfile
container_name: kitchenasty-admin
ports:
- "5173:80"
depends_on:
- server
storefront:
build:
context: .
dockerfile: packages/storefront/Dockerfile
container_name: kitchenasty-storefront
ports:
- "5174:80"
depends_on:
- server
docs:
build:
context: .
dockerfile: packages/docs/Dockerfile
container_name: kitchenasty-docs
ports:
- "5175:80"
volumes:
pgdata: