forked from rocketseat-education/bootcamp-gostack-desafio-03
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (50 loc) · 975 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'
services:
postgres:
image: postgres:alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:alpine
mongo:
image: mongo
app:
build: .
ports:
- "3333:3333"
command: yarn dev
environment:
- DB_HOST=postgres
- MONGO_HOST=mongo
- REDIS_HOST=redis
- MAIL_HOST=mailhog
- MAIL_PORT=1025
- MAIL_USER=
- MAIL_PASS=
volumes:
- ".:/usr/app"
queue:
build: .
command: yarn queue
environment:
- DB_HOST=postgres
- MONGO_HOST=mongo
- REDIS_HOST=redis
- MAIL_HOST=mailhog
- MAIL_PORT=1025
- MAIL_USER=
- MAIL_PASS=
volumes:
- ".:/usr/app"
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
volumes:
postgres_data: