forked from iambrennanwalsh/symfony-5-http-cached-rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
58 lines (52 loc) · 1.03 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
version: '3.7'
services:
mailhog:
image: 'mailhog/mailhog:latest'
container_name: mailhog
restart: always
ports:
- '8025:8025'
- '1025:1025'
# ###> symfony/mailer ###
# mailer:
# container_name: mailer
# restart: always
# image: schickling/mailcatcher
# ports: [1025, 1080]
# ###< symfony/mailer ###
postgres:
env_file:
- .env
hostname: postgres
image: postgres:13.1-alpine
ports:
- 5432:${POSTGRES_PORT:-5432}
restart: unless-stopped
volumes:
- PostgresData:/var/lib/postgresql/data
php:
build:
context: .
dockerfile: .docker/php/Dockerfile
env_file:
- .env
restart: unless-stopped
volumes:
- ./:/var/www
caddy:
env_file:
- .env
image: caddy:2.3.0-alpine
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- .:/var/www
- .docker/caddy/:/etc/caddy/
- CaddyConfig:/config
- CaddyData:/data
volumes:
PostgresData:
CaddyConfig:
CaddyData: