Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
101 lines (100 loc) · 2.74 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
101 lines (100 loc) · 2.74 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
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
92
93
94
95
96
97
98
99
100
101
services:
# unified database for host + gdps
mariadb:
image: mariadb:latest
restart: always
healthcheck:
test: ["CMD", "bash", "-c", "mariadb -h 127.0.0.1 -u $${MARIADB_USER} -p$${MARIADB_PASSWORD} -e 'SELECT 1'"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "3306:3306"
volumes:
- ./_mysql:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: "GlooseDumbass"
MARIADB_USER: "gen_user"
MARIADB_PASSWORD: "pineappol"
MARIADB_DATABASE: "gdps_000S"
# redis for gdps config storage (db 7)
redis:
image: redis:latest
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 2s
retries: 3
ports:
- "6379:6379"
volumes:
- ./_redis:/data
minio:
image: quay.io/minio/minio:latest
restart: always
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./_minio:/data
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: "apache"
MINIO_ROOT_PASSWORD: "apache2077"
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
depends_on:
mariadb:
condition: service_healthy
# used for importing backups
recovery:
build: _recover
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_started
volumes:
- ./_recover:/recovery
environment:
NEED_RECOVERY: "true"
ID: "000S" # GDPS ID
MINIO_USER: "apache"
MINIO_PASSWORD: "apache2077"
DB_USER: "gen_user"
DB_PASS: "pineappol"
REDIS_PASSWORD: ""
# ghostcore itself
ghostcore:
build:
context: src
dockerfile: Dockerfile
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_started
recovery:
condition: service_completed_successfully
ports:
- "80:1997"
environment:
MASTER_KEY: "WhateverKey" # Used for authenticating service endpoints
DB_USER: "gen_user" # database user for everything
DB_PASS: "pineappol" # database password
DB_HOST: "mariadb" # Don't change
REDIS_PORT: "6379" # Don't change
REDIS_HOST: "redis" # Don't change
REDIS_PASSWORD: "" # Don't change unless you've set Redis password
SAVE_PATH: "/core" # Used for security model
S3_CONFIG: "access_key=apache,secret=apache2077,region=us-east-1,bucket=default,endpoint=minio,cdn=minio" # S3 creds for minio
CONSUL_ADDR: "consul:8500" # Ignore this, when core can't connect to consul it will assume self-leadership
CONSUL_DC: "dc1" # Ignore this