-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (43 loc) 路 1.13 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
45 lines (43 loc) 路 1.13 KB
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
version: "3.9"
services:
contractus:
image: contractus:dev
build:
context: .
dockerfile: ./Dockerfile.dev
args:
GO_VERSION: ${GO_VERSION}
GOLANGCI_LINT_VERSION: ${GOLANGCI_LINT_VERSION}
environment:
CONTRACTUS_POSTGRES_URL: postgres://postgres:postgres@postgres:5432/contractus?sslmode=disable
CONTRACTUS_DOMAIN: http://localhost:8080
CONTRACTUS_JWT_SECRET_KEY: secret
CONTRACTUS_ACCESS_TYPE: offline
CONTRACTUS_GOOGLE_CLIENT_ID: ${CONTRACTUS_GOOGLE_CLIENT_ID}
CONTRACTUS_GOOGLE_CLIENT_SECRET: ${CONTRACTUS_GOOGLE_CLIENT_SECRET}
volumes:
- .:/app/src
ports:
- 8080:8080
depends_on:
postgres:
condition: service_healthy
command: go run ./cmd/contractus
postgres:
image: postgres:14
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: contractus
volumes:
- db:/var/lib/postgresql/data
restart: unless-stopped
ports:
- 5432:5432
healthcheck:
test: pg_isready -U postgres
interval: 2s
timeout: 3s
retries: 5
volumes:
db: