-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (45 loc) · 909 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
version: '3.8'
services:
# ===========
# API SERVICE
# ===========
api:
container_name: api
restart: always
build: .
env_file:
- .env
ports:
- 5000:5000
networks:
- jikapi_network
depends_on:
- db
### ===================
### DB SERVICE
### ===================
db:
image: postgres:15.3-alpine3.18
restart: always
env_file:
- .env
environment:
- POSTGRES_DB=${PG_DB}
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PASSWORD}
ports:
- 5430:5432
volumes:
- pg-data:/var/lib/postgresql/data
networks:
- jikapi_network
### ========================
### VOLUMES PERSISTENT DATA
### ========================
volumes:
pg-data:
### ===================================
### NETWORKS GROUP FOR ONE SERVICE
### ===================================
networks:
jikapi_network: