-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
88 lines (85 loc) · 1.77 KB
/
docker-compose.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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
- NODE_ENV=production
- VIRTUAL_HOST=api.saastr.0x0.run
- LETSENCRYPT_HOST=api.saastr.0x0.run
- VIRTUAL_PORT=3333
network_mode: bridge
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=production
- VIRTUAL_HOST=saastr.0x0.run
- LETSENCRYPT_HOST=saastr.0x0.run
- VIRTUAL_PORT=3000
network_mode: bridge
depends_on:
- api
postgres:
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
image: postgres
ports:
- 5433:5432
expose:
- "5433"
environment:
- DEBUG=false
- POSTGRES_USER=root
- POSTGRES_PASSWORD=XXXXXX
- POSTGRES_DB=saastr
- VIRTUAL_HOST=db.saastr.0x0.run
- LETSENCRYPT_HOST=db.saastr.0x0.run
- VIRTUAL_PORT=5433
network_mode: bridge
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