-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
68 lines (68 loc) · 2.05 KB
/
docker-compose.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
container_name: laravel-username-generator
volumes:
- ".:/var/www/html"
depends_on:
- mysql
networks:
- laravel-username-generator-net
mysql:
image: 'mysql/mysql-server:8.0'
container_name: laravel-username-generator-mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: 'testing'
MYSQL_USER: 'laravel'
MYSQL_PASSWORD: 'laravel'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
test:
- CMD
- mysqladmin
- ping
retries: 3
timeout: 5s
networks:
- laravel-username-generator-net
pgsql:
image: 'postgres:15'
container_name: laravel-username-generator-pgsql
ports:
- "5432:5432"
environment:
PGPASSWORD: 'laravel'
POSTGRES_DB: 'testing'
POSTGRES_USER: 'laravel'
POSTGRES_PASSWORD: 'laravel'
networks:
- laravel-username-generator-net
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "testing", "-U", "laravel" ]
retries: 3
timeout: 5s
sqlsrv:
image: mcr.microsoft.com/mssql/server:2019-latest
container_name: laravel-username-generator-sqlsrv
command: /bin/bash ./entrypoint.sh
environment:
ACCEPT_EULA: 'Y'
MSSQL_PID: 'Developer'
MSSQL_SA_PASSWORD: 'SQL.Server.2019'
ports:
- "1433:1433"
volumes:
- ./docker/sqlsrv/entrypoint.sh:/entrypoint.sh
- ./docker/sqlsrv/initdb.sh:/initdb.sh
- ./docker/sqlsrv/initdb.sql:/initdb.sql
networks:
- laravel-username-generator-net
networks:
laravel-username-generator-net:
driver: bridge