This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathdocker-compose.yml
101 lines (101 loc) · 2.78 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
92
93
94
95
96
97
98
99
100
101
version: "3.9"
services:
shell:
build: ./docker
volumes:
- .:/pypicloud
working_dir: /pypicloud
init: true
environment:
HOME: /pypicloud
REDIS_HOST: redis
REDIS_CLUSTER_HOST: redis-cluster-node-2
POSTGRES_HOST: postgres
POSTGRES_DB: postgres
MYSQL_HOST: mysql
MYSQL_PASSWORD: iamroot
MYSQL_DB: test
LDAP_HOST: ldap
GITHUB_ACTIONS: $GITHUB_ACTIONS
GITHUB_TOKEN: $GITHUB_TOKEN
GITHUB_REF: $GITHUB_REF
GITHUB_HEAD_REF: $GITHUB_HEAD_REF
user: ${CURRENT_UID:?"Please run as follows 'CURRENT_UID=$(id -u):$(id -g) docker-compose up'"}
stdin_open: true
tty: true
depends_on:
- redis
- postgres
- mysql
- ldap
- azurite
- redis-cluster-node-2
- fake-gcs-server
redis:
image: "redis"
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 2
start_period: 10s
redis-cluster-node-0:
image: docker.io/bitnami/redis-cluster:7.0
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-cluster-node-0 redis-cluster-node-1 redis-cluster-node-2'
redis-cluster-node-1:
image: docker.io/bitnami/redis-cluster:7.0
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-cluster-node-0 redis-cluster-node-1 redis-cluster-node-2'
redis-cluster-node-2:
image: docker.io/bitnami/redis-cluster:7.0
depends_on:
- redis-cluster-node-0
- redis-cluster-node-1
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-cluster-node-0 redis-cluster-node-1 redis-cluster-node-2'
- 'REDIS_CLUSTER_REPLICAS=0'
- 'REDIS_CLUSTER_CREATOR=yes'
postgres:
image: 'postgres'
environment:
POSTGRES_PASSWORD: ''
POSTGRES_DB: postgres
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 2
start_period: 40s
mysql:
image: 'mysql'
command: --character-set-server=utf8mb4
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: iamroot
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 2
start_period: 40s
ldap:
image: 'osixia/openldap'
volumes:
- ./ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
command: ['--loglevel', 'debug', '--copy-service']
azurite:
image: 'mcr.microsoft.com/azure-storage/azurite'
hostname: "devstoreaccount1.azurite"
ports:
- "10000:10000"
command: ["azurite-blob", "--blobHost=0.0.0.0", "--blobPort=10000"]
fake-gcs-server:
image: 'fsouza/fake-gcs-server'
ports:
- '4443:4443'
command: ["-scheme", "http"]