forked from Power-Components/livewire-powergrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1003 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 1003 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3'
services:
mysql:
container_name: 'mysql_test'
image: 'mysql/mysql-server:8.0'
ports:
- '3307:3306'
command: '--default-authentication-plugin=mysql_native_password'
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: 'powergridtest'
MYSQL_USER: 'powergrid'
MYSQL_PASSWORD: 'password'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
networks:
- sail
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-ppassword" ]
retries: 3
timeout: 5s
pgsql:
container_name: 'pgsql_test'
image: 'postgres:13'
ports:
- '5433:5432'
environment:
PGPASSWORD: 'password'
POSTGRES_DB: 'powergridtest'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'password'
networks:
- sail
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "powergridtest", "-U", "postgres" ]
retries: 3
timeout: 5s
networks:
sail:
driver: bridge