-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 896 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
version: "3.8"
services:
db:
build:
context: .
dockerfile: db.Dockerfile
container_name: db
shm_size: 1g
volumes:
- db-data:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- common
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
docs:
build:
context: .
dockerfile: docs.Dockerfile
container_name: docs
ports:
- 8000:8000
networks:
- common
cli:
build:
context: .
dockerfile: Dockerfile
cpu_count: 12
mem_limit: 8g
container_name: cli
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_PORT=5432
networks:
- common
depends_on:
- db
networks:
common:
volumes:
db-data: