-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.dev.yaml
74 lines (71 loc) · 1.33 KB
/
docker-compose.dev.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
api:
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
build:
context: ./api
image: api.saastr
restart: always
ports:
- 3333:3333
expose:
- "3333"
environment:
- ENV_PATH=/api/.env.dev
- NODE_ENV=development
app:
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
build:
context: ./app
image: app.saastr
restart: always
ports:
- 3000:3000
expose:
- "3000"
environment:
- NODE_ENV=development
depends_on:
- api
postgres:
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
image: postgres
ports:
- 5432:5432
expose:
- "5432"
environment:
- DEBUG=false
- POSTGRES_USER=root
- POSTGRES_PASSWORD=azertyuiop
- POSTGRES_DB=saastr
volumes:
- ./database:/var/lib/postgresql/data
documentation:
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
image: nginx
ports:
- 8080:80
expose:
- "8080"
volumes:
- ./docs:/usr/share/nginx/html:ro
command: [nginx-debug, '-g', 'daemon off;']