-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 806 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 806 Bytes
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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
# You can also use the pre-built image from Docker Hub:
# image: flintsh/flare:latest
restart: always
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://flare:flarepassword@postgres:5432/flare?schema=public
- NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=your-secret-key-here
volumes:
- uploads:/app/uploads
depends_on:
- postgres
postgres:
image: postgres:16-alpine
restart: always
environment:
- POSTGRES_USER=flare
- POSTGRES_PASSWORD=flarepassword
- POSTGRES_DB=flare
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
uploads: