/
docker-compose.yml
45 lines (42 loc) · 950 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
services:
# app:
# container_name: fuel-management-backend
# build:
# dockerfile: Dockerfile
# context: .
# args:
# - GITHUB_TOKEN=${GITHUB_TOKEN}
# develop:
# watch:
# - action: rebuild
# files:
# - ./**/*.go
# - ./go.mod
# - ./go.sum
# ports:
# - 8080:8080
# networks:
# - fuel-management
postgres:
container_name: fuel-management-postgres
image: postgres:16-alpine
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
TZ: Asia/Bangkok
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- fuel-management-postgres-data:/var/lib/postgresql/data
networks:
- fuel-management
networks:
fuel-management:
volumes:
fuel-management-postgres-data: