forked from NeuraLegion/brokencrystals
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.local.yml
56 lines (53 loc) · 1 KB
/
docker-compose.local.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'
services:
db:
image: postgres
restart: always
healthcheck:
interval: 10s
retries: 10
test:
[
'CMD-SHELL',
'pg_isready',
'-U',
'${POSTGRES_USER}',
'-P',
'${POSTGRES_PASSWORD}',
]
timeout: 45s
environment:
POSTGRES_DB: bc
POSTGRES_USER: bc
POSTGRES_PASSWORD: bc
ports:
- 5432:5432
volumes:
- ./pg.sql:/docker-entrypoint-initdb.d/pg.sql
nodejs:
build:
context: '.'
dockerfile: Dockerfile
container_name: nodejs
restart: always
environment:
URL: http://localhost:3000
ports:
- '3000:3000'
logging:
options:
max-file: '5'
max-size: '10m'
depends_on:
- db
mailcatcher:
image: sj26/mailcatcher
container_name: mailcatcher
restart: always
ports:
- '1080:1080'
- '1025:1025'
logging:
options:
max-file: '5'
max-size: '10m'