-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (56 loc) · 1.05 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
version: "3"
services:
web:
build:
context: web
deploy:
resources:
limits:
cpus: "1.0"
memory: 1024M
environment:
API_URL: http://api:80
ENVIRONMENT: dev
FLASK_DEBUG: 1
SECRET_KEY: "0cX78ltAhxMlwTDAQQYdlXvapcJMWA=="
links:
- api
ports:
- "8000:80"
volumes:
- ./web/app:/code/app
api:
build:
context: api
deploy:
resources:
limits:
cpus: "2.0"
memory: "2048M"
environment:
ENVIRONMENT: dev
POSTGRES_DB: example
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
WEB_URL: web:8000
links:
- db
ports:
- "5000:80"
volumes:
- ./api/app:/code/app
db:
deploy:
resources:
limits:
cpus: "2.0"
memory: "2048M"
environment:
POSTGRES_DB: example
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
image: postgres:15
ports:
- "5432:5432"
volumes:
- ./db:/var/lib/postgresql/data