-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
62 lines (58 loc) · 1.32 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
62 lines (58 loc) · 1.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
api:
build:
context: .
dockerfile: Dockerfile.dev
container_name: nimbus-api
hostname: nimbus-api
restart: unless-stopped
env_file: .env
depends_on:
database:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- .:/app
- go-modules:/go/pkg/mod
stdin_open: true
tty: true
database:
image: postgres:18
container_name: nimbus-db
hostname: nimbus-db
env_file: .env.database
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 10s
retries: 5
volumes:
- db:/var/lib/postgresql
nginx:
image: nginx:alpine
container_name: nimbus-nginx
restart: unless-stopped
depends_on:
api:
condition: service_healthy
swagger-ui:
condition: service_started
ports:
- "8080:80"
volumes:
- ./fileserver.conf:/etc/nginx/conf.d/default.conf:ro
swagger-ui:
image: swaggerapi/swagger-ui:latest
container_name: nimbus-docs
hostname: nimbus-docs
environment:
BASE_URL: /docs
URL: /openapi.yaml
DEEP_LINKING: true
volumes:
db:
go-modules: