-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
56 lines (52 loc) · 1.11 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
version: "3.8"
services:
app:
container_name: threadit-dev
build:
context: .
target: deps
ports:
- "3000:3000"
env_file: ./.env.local
volumes:
- .:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
- REDIS_URL=http://serverless-redis-http:80
command: sh -c 'source migrate-and-start.sh'
depends_on:
- db
- redis
- serverless-redis-http
db:
extends:
file: docker-compose.base.yml
service: db
ports:
- ${DB_PORT}:5432
volumes:
- postgres_data:/var/lib/postgresql/data
env_file: ./.env.local
redis:
extends:
file: docker-compose.base.yml
service: redis
ports:
- ${REDIS_PORT}:6379
volumes:
- redis_data:/data
env_file: ./.env.local
serverless-redis-http:
image: hiett/serverless-redis-http:0.0.9
environment:
SRH_MODE: env
SRH_TOKEN: ${REDIS_TOKEN}
SRH_CONNECTION_STRING: "redis://redis:${REDIS_PORT}"
ports:
- ${SRH_PORT}:80
env_file: ./.env.local
volumes:
postgres_data:
redis_data: