-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (51 loc) · 934 Bytes
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.9'
services:
api:
container_name: api
build:
context: .
dockerfile: Dockerfile.dev
ports:
- 3000:3000
volumes:
- .:/app
depends_on:
- postgres
- redis
- mailhog
env_file:
- ./.env
postgres:
container_name: postgres
image: postgres
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: secret
POSTGRES_DB: api
redis:
container_name: redis
image: redis
restart: unless-stopped
ports:
- 6379:6379
mailhog:
container_name: mailhog
image: mailhog/mailhog
restart: unless-stopped
ports:
- 1025:1025
- 8025:8025
logging:
driver: none
networks:
default:
name: dev
driver: bridge
volumes:
postgres_data:
name: postgres-data