-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-infra.yml
53 lines (48 loc) · 1.29 KB
/
docker-compose-infra.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
version: "3.8"
services:
# Mock AWS S3 services
localstack:
container_name: localstack
image: localstack/localstack
environment:
- DEBUG=1
- USE_SSL=0
- AWS_CBOR_DISABLE=1
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME=localstack
- SERVICES=s3
- AWS_DEFAULT_REGION=us-west-1
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
# Storing log for Prod env
mariadb:
container_name: mariadb
image: mariadb
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_HOST: mariadb
restart: unless-stopped
volumes:
- "mariadb_volume:/var/lib/mysql"
- "./src/main/resources/dblog/schema-mysql.sql:/docker-entrypoint-initdb.d/init.sql"
# If you want to see the logs in DB
# http://localhost:3307/
# username / pass: root / root
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
ports:
- '3307:80'
environment:
MYSQL_ROOT_PASSWORD: root
PMA_HOST: mariadb
depends_on:
- mariadb
volumes:
mariadb_volume: