-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 879 Bytes
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
version: '3.7'
services:
# car-booking-api-rust:
# build: .
# links:
# - postgres
# environment:
# SERVER.HOST: 0.0.0.0
# SERVER.PORT: 8080
# PG.USER: db_user
# PG.PASSWORD: db_pass
# PG.HOST: postgres
# PG.PORT: 5432
# PG.DBNAME: car_booking_db
# PG.POOL.MAX_SIZE: 30
# deploy:
# resources:
# limits:
# memory: '1G'
# cpus: '2'
# ports:
# - 8080:8080
db:
image: postgres:14-alpine
container_name: postgres
restart: always
volumes:
- pg_data:/VAR/LIB/POSTGRESQL/DATA
environment:
POSTGRES_USER: db_user
POSTGRES_PASSWORD: db_pass
POSTGRES_DB: car_booking_db
ports:
- 5432:5432
deploy:
resources:
limits:
memory: '512M'
cpus: '1'
volumes:
pg_data:
driver: local