-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
74 lines (66 loc) · 1.4 KB
/
docker-compose.dev.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
68
69
70
71
72
73
74
version: '3.9'
services:
db:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:latest
restart: always
volumes:
- redis_data:/data
api:
build:
context: ./api
dockerfile: Dockerfile.dev
restart: always
volumes:
- ./api:/app
ports:
- 3000:3000
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres?schema=public&connect_timeout=300
- REDIS_URL=redis://redis:6379
- CORS_ORIGIN=http://localhost:5000
- SESSION_SECRET=
- USE_MAIL=true
- MAIL_HOST=
- MAIL_PORT=
- MAIL_USER=
- MAIL_PASS=
- MAIL_FROM=Bliss <[email protected]>
# s3 or local
- UPLOADER=local
# if you use s3 set these
- S3_ENDPOINT=
- S3_ACCESS_KEY_ID=
- S3_SECRET_ACCESS_KEY=
- S3_BUCKET_NAME=
- S3_REGION=
# optional
- COOKIE_NAME=
- UPLOAD_DIR=
depends_on:
- db
- redis
web:
build:
context: ./web
dockerfile: Dockerfile.dev
restart: always
volumes:
- ./web:/app
ports:
- 5000:5000
depends_on:
- api
environment:
- NEXT_PUBLIC_API_URL=http://localhost:3000
volumes:
db_data:
redis_data: