-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
47 lines (42 loc) · 1.03 KB
/
compose.yaml
File metadata and controls
47 lines (42 loc) · 1.03 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
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
###> doctrine/doctrine-bundle ###
database:
image: mysql:${MYSQL_VERSION:-8.3.0}
command: --default-authentication-plugin=mysql_native_password --secure-file-priv=''
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD:-password123#}
volumes:
- ./infra/docker/mysql/conf.d/my.cnf:/etc/my.cnf:ro
- ./infra/docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
- ./infra/docker/mysql/tmp:/tmp:rw
- database_data1:/var/lib/mysql:rw
networks:
- app-network
###< doctrine/doctrine-bundle ###
app-default:
container_name: app-default
build:
context: ./.
dockerfile: ./Dockerfile
args:
APP_ENV: dev
volumes:
- ./:/app
depends_on:
- database
- redis
ports:
- "80:8000"
env_file:
- ./.env
networks:
- app-network
volumes:
###> doctrine/doctrine-bundle ###
database_data1:
###< doctrine/doctrine-bundle ###
networks:
app-network:
driver: bridge