-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
43 lines (39 loc) · 899 Bytes
/
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.8"
services:
php:
build:
context: .
target: dev
tty: true
volumes:
- ./:/app
- ./volumes/bash_history:/home/dev/.bash_history
working_dir: /app
networks:
- booking_net
###> doctrine/doctrine-bundle ###
database:
image: mysql:${MYSQL_VERSION:-8.3}
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS:-root}
MYSQL_DATABASE: ${MYSQL_DB:-booking}
MYSQL_USER: ${MYSQL_USER:-user}
MYSQL_PASSWORD: ${MYSQL_PASS:-user}
volumes:
- ./volumes/database_data:/var/lib/mysql:rw
networks:
- booking_net
###< doctrine/doctrine-bundle ###
caddy:
image: caddy:2.7.6-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./volumes/Caddyfile:/etc/caddy/Caddyfile
- ./public/:/app/public/
networks:
- booking_net
networks:
booking_net:
driver: bridge