-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
34 lines (32 loc) · 1.09 KB
/
compose.yaml
File metadata and controls
34 lines (32 loc) · 1.09 KB
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
services:
redis:
image: redis:5
ports:
- '127.0.0.1::6379'
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 10s
timeout: 5s
retries: 10
postgres:
image: postgres:${POSTGRES_VERSION:-10}-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
POSTGRES_USER: ${POSTGRES_USER:-app}
labels:
com.symfony.server.service-prefix: 'POSTGRES'
ports:
- '127.0.0.1::5432'
mysql:
image: mysql:8.0
environment:
MYSQL_USER: ${MYSQL_USER:-app}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-!ChangeMe!}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-!ChangeMe!}
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
labels:
com.symfony.server.service-prefix: 'MYSQL'
command: [ '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
ports:
- '127.0.0.1::3306'