-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
61 lines (56 loc) · 1.12 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
services:
auth:
image: docs/auth:latest
restart: unless-stopped
build: auth
depends_on:
- pg
- redis
environment:
- POSTGRES_PASSWORD
- REDIS_URI
- DOCS_SECRET
api:
image: docs/api:latest
restart: unless-stopped
build: api
depends_on:
- pg
- redis
environment:
- WEB_CONCURRENCY=2
- REDIS_URI
- DOCS_SECRET
- APP_ENV=production
pg:
image: postgres:15.3
restart: unless-stopped
volumes:
- "pg-data:/var/lib/postgresql/data"
- "./init.sql:/docker-entrypoint-initdb.d/init.sql:ro"
environment:
- POSTGRES_PASSWORD
redis:
image: redis:7.0.12
restart: unless-stopped
volumes:
- "redis-data:/data"
command:
- redis-server
- --save 60 1
- --loglevel warning
nginx:
image: nginx:1.24
restart: unless-stopped
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf:ro"
- "./static:/data/static:ro"
- "./index.html:/data/index.html:ro"
ports:
- "80:80"
depends_on:
- auth
- api
volumes:
pg-data: {}
redis-data: {}