forked from hashicorp/terraform-provider-vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
101 lines (91 loc) · 2.47 KB
/
docker-compose.yaml
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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
version: "2.2"
services:
vault:
image: vault:latest
cap_add:
- "IPC_LOCK"
ports:
- "8200:8200"
environment:
VAULT_DEV_ROOT_TOKEN_ID: "TEST"
VAULT_ADDR: "http://localhost:8200"
VAULT_TOKEN: "TEST"
MYSQL_URL: "vault:vault@tcp(mysql:3306)/"
# to run this container on Mac M1 you need to
# export DOCKER_DEFAULT_PLATFORM=linux/amd64
# to run acceptance tests locally you need to
# export MYSQL_URL=root:mysql@tcp(localhost:3306)/
# to run the docker container
# docker compose up -d mysql
mysql:
image: docker.mirror.hashicorp.services/mysql:latest
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "mysql"
elastic:
image: elasticsearch:7.17.10
ports:
- "9200:9200"
environment:
"discovery.type": "single-node"
"xpack.security.enabled": "true"
"ELASTIC_PASSWORD": "elastic"
influxdb:
image: influxdb:1.8.10
ports:
- "8086:8086"
environment:
"DOCKER_INFLUXDB_INIT_MODE": "setup"
"DOCKER_INFLUXDB_INIT_USERNAME": "admin"
"DOCKER_INFLUXDB_INIT_PASSWORD": "password"
"DOCKER_INFLUXDB_INIT_ORG": "test"
"DOCKER_INFLUXDB_INIT_BUCKET": "test"
openldap:
image: docker.io/bitnami/openldap:2.6
ports:
- '1389:1389'
- '1636:1636'
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=adminpassword
- LDAP_USERS=alice,bob,foo
- LDAP_PASSWORDS=password1,password2,password3
# this container will take at least 20 seconds for the ad service to be
# available so manual test runs should take this into account
ad:
image: laslabs/alpine-samba-dc:0.1.0
cap_add:
- "SYS_ADMIN"
ports:
- '2389:389'
- '2636:636'
environment:
- SAMBA_DC_REALM=corp.example.net
- SAMBA_DC_DOMAIN=EXAMPLE
- SAMBA_DC_ADMIN_PASSWD=SuperSecretPassw0rd
- SAMBA_DC_DNS_BACKEND=SAMBA_INTERNAL
redis:
image: redis:7.0.11
ports:
- '6379:6379'
command: >
--requirepass password
couchbase:
image: couchbase:7.2.0
ports:
- '8091-8097:8091-8097'
- '9123:9123'
- '11207:11207'
- '11210:11210'
- '11280:11280'
- '18097:18097'
cassandra:
image: cassandra:4.0
ports:
- "9042:9042"
volumes:
- ./testdata/cassandra.yaml:/etc/cassandra/cassandra.yaml