-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (25 loc) · 828 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
25 lines (25 loc) · 828 Bytes
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
version: '0.1'
services:
mysql:
image: mysql
ports:
- 3306:3306
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./setup_files/mysql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: password
postgres:
image: postgres:14-alpine
command: ["postgres", "-c", "log_statement=all"]
ports:
- 5432:5432
volumes:
- ~/apps/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=admin
- POSTGRES_DB=edw