-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 799 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 799 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
version: "2.3"
services:
api:
build:
context: ./
dockerfile: Dockerfile
ports:
- "8000:8000"
expose:
- 8000
depends_on:
- db
networks:
- jayy_network
links:
- db
environment:
DATABASE_URL: "postgres://jayylmao:yeetus@db:5432"
RUST_BACKTRACE: 1
db:
image: postgres:12
mem_limit: 1536MB
mem_reservation: 1G
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
environment:
POSTGRES_USER: jayylmao
POSTGRES_PASSWORD: yeetus
ports:
- "5432:5432"
networks:
- jayy_network
volumes:
- ./db/:/docker-entrypoint-initdb.d/
- db-data:/var/lib/postgresql/data
networks:
jayy_network:
driver: bridge
volumes:
db-data: