-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
43 lines (41 loc) · 1.33 KB
/
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
#version: '3'
services:
###> doctrine/doctrine-bundle ###
database:
image: 'mysql:latest'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: biblios
MYSQL_USER: zak
MYSQL_PASSWORD: g$5tDjv@tGsRjNPAQmem
ports:
# To allow the host machine to access the ports below, modify the lines below.
# For example, to allow the host to connect to port 3306 on the container, you would change
# "3306" to "3306:3306". Where the first port is exposed to the host and the second is the container port.
# See https://docs.docker.com/compose/compose-file/compose-file-v3/#ports for more information.
- '3306'
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
php:
build: .
restart: always
ports:
- "9000:80" # HTTP
- "9001:443" # HTTPS
- "9001:443/udp" # HTTP/3
volumes:
- .:/app
- caddy_data:/data
- caddy_config:/config
depends_on:
- database
extra_hosts:
- "biblios.zak.dev=127.0.0.1"
- "biblios.zak.dev=::1"
###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ###
database_data:
caddy_data:
caddy_config:
###< doctrine/doctrine-bundle ###