-
Notifications
You must be signed in to change notification settings - Fork 161
/
docker-compose.yml
executable file
·91 lines (86 loc) · 2.02 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
version: "3.8"
services:
terraboard-dev:
build:
context: ../
dockerfile: ./Dockerfile
environment:
AWS_ACCESS_KEY_ID: root
AWS_SECRET_ACCESS_KEY: mypassword
AWS_BUCKET: test-bucket
AWS_REGION: eu-west-1
AWS_ENDPOINT: http://minio:9000/
AWS_FORCE_PATH_STYLE: "true"
TERRABOARD_LOG_LEVEL: debug
TERRABOARD_NO_LOCKS: "true"
TERRABOARD_NO_VERSIONING: "true"
DB_PASSWORD: mypassword
DB_SSLMODE: disable
GODEBUG: netdns=go
depends_on:
db:
condition: service_healthy
minio:
condition: service_started
volumes:
- ../static:/static:ro
ports:
- "8080:8080"
# terraboard-dev-multi-providers:
# build:
# context: ../
# dockerfile: ./Dockerfile
# environment:
# AWS_ACCESS_KEY_ID: root
# AWS_SECRET_ACCESS_KEY: mypassword
# DB_SSLMODE: disable
# CONFIG_FILE: config/config.yml
# GODEBUG: netdns=go
# depends_on:
# db:
# condition: service_healthy
# minio:
# condition: service_started
# volumes:
# - ../static:/static:ro
# - ./config.yml:/config/config.yml:ro
# ports:
# - "8081:8081"
minio:
image: minio/minio:latest
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: mypassword
user: "${UID}:${GID}"
expose:
- "9000"
ports:
- "9200:9000"
volumes:
- ./data:/data
command: server /data
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
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
volumes:
tb-data: {}