-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
44 lines (40 loc) · 1.22 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
version: '3'
services:
postgres:
image: postgres:14
restart: always
environment:
POSTGRES_USER: saas
POSTGRES_PASSWORD: saas
POSTGRES_DB: saas
ports:
- 5432:5432
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
maildev:
image: djfarrelly/maildev
ports:
- '1080:80'
- '25:25'
web:
image: node:18
working_dir: /app
command: sh -c "yarn && npm run dev" # Install dependencies before starting
ports:
- "3000:3000"
volumes:
- ./uploads:/app/public/uploads # Mount local uploads to Next.js public directory
- .:/app # Mount entire project for development
- /app/node_modules # Prevent overriding node_modules
environment:
NODE_ENV: development
PORT: 3000
env_file:
- .env # This will load environment variables from .env file
depends_on:
- postgres
volumes:
postgresql:
postgresql_data:
# uploads: ajouter point de volume pour uploads