-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
57 lines (45 loc) · 923 Bytes
/
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
version: '3'
services:
td-app:
container_name: td-app
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /app
volumes:
- ./:/app
tty: true
ports:
- '8080:8080'
environment:
DB_URI: postgresql://postgres:postgres@td-db:6432/todo_db
REDIS_URI: redis://@td-redis:7379
PORT: 8080
env_file:
- .env
depends_on:
- td-db
- td-redis
td-db:
container_name: td-postgresql
image: postgres
build: .
restart: always
command: -p 6432
ports:
- 6432:6432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: todo_db
td-redis:
container_name: td-redis
image: redis
ports:
- '7379:7379'
volumes:
- redis-data:/data
entrypoint: redis-server --appendonly yes --port 7379
restart: always
volumes:
redis-data: