-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.26 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
#
# To connect from adminer: specify service name (mysql) rather than the container's IP address (localhost)
# To connect from mysql client: mysql -u root -h 127.0.0.1 -p
#
version: '3.8'
services:
mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
hostname: mysql
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: s3c4Et
MYSQL_USER: test
MYSQL_PASSWORD: changeMe
ports:
- "3306:3306"
volumes:
- "./docker/mysql/sakila.sql:/docker-entrypoint-initdb.d/sakila.sql"
adminer:
image: adminer
hostname: adminer
container_name: adminer
environment:
ADMINER_DESIGN: dracula
ports:
- "8080:8080"
depends_on:
- mysql
localstack:
image: localstack/localstack
hostname: localstack
container_name: localstack
environment:
- LOCALSTACK_DEBUG=0
- LOCALSTACK_DOCKER_HOST=unix:///var/run/docker.sock
- LOCALSTACK_PERSISTENCE=0
- PROVIDER_OVERRIDE_S3=asf
ports:
- "4566:4566"
volumes:
- "./docker/localstack/create_s3_bucket.sh:/etc/localstack/init/ready.d/create_s3_bucket.sh"
- "${LOCALSTACK_VOLUME_DIR:-./.localstack}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"