-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (62 loc) · 1.39 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.8'
services:
app:
build:
context: .
target: app
command: pnpm --filter app run start
environment:
- HOST=0.0.0.0
- PORT=3000
- ORIGIN=${ORIGIN}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- DB_URL=${DB_URL}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
ports:
- '7149:3000'
depends_on:
- redis
- db
worker:
build:
context: .
target: worker
command: pnpm --filter workers run start
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
depends_on:
- redis
- db
redis:
image: redis:latest
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- '6379:6379'
db:
image: postgres:latest
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=kLSN22t5MJs7fAfSjiBG
- POSTGRES_DB=clairvue
ports:
- '5432:5432'
redis-commander:
image: ghcr.io/joeferner/redis-commander:latest
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- '8081:8081'
depends_on:
- redis