generated from wayofdev/laravel-package-tpl
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
99 lines (92 loc) · 2.39 KB
/
docker-compose.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
services:
app:
image: wayofdev/php-dev:8.3-cli-alpine-latest
container_name: ${COMPOSE_PROJECT_NAME}-app
restart: on-failure
networks:
- default
volumes:
- ./:/app:rw
- ~/.composer:/.composer
env_file:
- .env
environment:
PHIVE_HOME: /app/.phive
pgsql:
image: wayofdev/postgres:15-alpine-latest
container_name: ${COMPOSE_PROJECT_NAME}-pgsql
restart: on-failure
networks:
- default
ports:
- '${DB_PGSQL_FORWARD_PORT:-15432}:5432'
env_file:
- .env
environment:
POSTGRES_USER: ${DB_USERNAME:-cycle}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE:-default}
volumes:
- pgsql-data:/var/lib/postgresql/data:cached
healthcheck:
test: ['CMD', 'pg_isready', '-U', '${DB_USERNAME:-cycle}', '-d', '${DB_DATABASE:-default}']
interval: 3s
timeout: 1s
retries: 10
mysql:
image: mysql:latest
container_name: ${COMPOSE_PROJECT_NAME}-mysql
restart: on-failure
networks:
- default
ports:
- '${DB_MYSQL_FORWARD_PORT:-13306}:3306'
env_file:
- .env
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_USER: ${DB_USERNAME:-cycle}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE:-default}
volumes:
- mysql-data:/var/lib/mysql:cached
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 3s
timeout: 1s
retries: 10
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
platform: linux/amd64
container_name: ${COMPOSE_PROJECT_NAME}-sqlserver
restart: on-failure
networks:
- default
ports:
- '${DB_SQLSERVER_FORWARD_PORT:-11434}:1433'
env_file:
- .env
environment:
SA_PASSWORD: ${DB_PASSWORD}
ACCEPT_EULA: 'Y'
volumes:
- sqlserver-data:/var/opt/mssql
healthcheck:
test:
['CMD', '/opt/mssql-tools/bin/sqlcmd', '-S', 'localhost', '-U', 'SA', '-P', '${DB_PASSWORD}', '-l', '30', '-Q', 'SELECT 1']
interval: 3s
timeout: 1s
retries: 10
volumes:
pgsql-data:
name: ${COMPOSE_PROJECT_NAME}-pgsql-data
mysql-data:
name: ${COMPOSE_PROJECT_NAME}-mysql-data
sqlserver-data:
name: ${COMPOSE_PROJECT_NAME}-sqlserver-data
networks:
default:
name: project.${COMPOSE_PROJECT_NAME}
...