-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.43 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
version: "3.3"
services:
guilded-place-redis:
container_name: redis
image: redis:7.2.1-alpine
restart: always
ports:
- ${REDIS_PORT-6379}:${REDIS_PORT-6379}
volumes:
- ./redis:/data
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD-password}
- REDIS_PORT=${REDIS_PORT-6379}
guilded-place-db:
container_name: db
image: postgres:16-alpine
restart: always
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD-password}
volumes:
- ./db:/var/lib/postgresql/data
ports:
- ${DB_PORT-5432}:5432
guilded-place-app:
container_name: app
build:
context: .
dockerfile: ./docker/dev/app.dockerfile
restart: always
depends_on:
- guilded-place-db
ports:
- 5555:5555
- 5173:5173
volumes:
- ./app:/app
environment:
- DATABASE_URL=postgresql://postgres:${DB_PASSWORD-password}@db:${DB_PORT-5432}/postgres
- JWT_SECRET=${JWT_SECRET-secret}
- CARDBOARD_TOKEN=${CARDBOARD_TOKEN:?Get token at https://cardboard.ink/}
- CARDBOARD_SECRET=${CARDBOARD_SECRET:?Get secret at https://cardboard.ink/}
- PUBLIC_CARDBOARD_URL=${PUBLIC_CARDBOARD_URL:?Get url at https://cardboard.ink/}
- PUBLIC_CURRENT_BOARD=${PUBLIC_CURRENT_BOARD?Board Param is required, set to empty string if none yet.}
- PROD=${PROD-false}
- REDIS_URL=redis://default:${REDIS_PASSWORD-password}@redis:${REDIS_PORT-6379}/0