-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
124 lines (116 loc) · 2.72 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
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
trap:
image: wayofdev/php-dev:8.3-cli-alpine-latest
container_name: ${COMPOSE_PROJECT_NAME}-trap
restart: on-failure
networks:
- default
ports:
- '${TRAP_PORT:-9912}:9912'
- '${TRAP_UI_PORT:-8000}:8000'
volumes:
- ./:/app:rw
- ~/.composer:/.composer
env_file:
- .env
entrypoint:
- /app/vendor/bin/trap
- --ui
- --port=${TRAP_PORT:-9912}
- --sender=server
- --sender=console
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}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- pgsql-data:/var/lib/postgresql/data:cached
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}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
volumes:
- mysql-data:/var/lib/mysql:cached
command: --default-authentication-plugin=mysql_native_password
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',
'SSpaSS__1_123',
'-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}
...