forked from camptocamp/terraboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 905 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
---
version: "3.8"
services:
terraboard:
build:
context: .
dockerfile: Dockerfile
image: camptocamp/terraboard:devel
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_DEFAULT_REGION}
AWS_BUCKET: ${AWS_BUCKET}
AWS_DYNAMODB_TABLE: ${AWS_DYNAMODB_TABLE}
DB_PASSWORD: mypassword
DB_SSLMODE: disable
GODEBUG: netdns=go
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
- "8081:8081"
db:
image: postgres:9.5
environment:
POSTGRES_USER: gorm
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: gorm
volumes:
- tb-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
tb-data: {}