-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (56 loc) · 1.29 KB
/
docker-compose.yml
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
59
60
61
62
63
64
version: "3.8"
x-common: &common
restart: "no"
environment: &env
TZ: "${TIMEZONE:-Europe/Vienna}"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
- .env.local
networks:
- app-network
services:
caddy:
<<: *common
image: caddy:2-alpine
hostname: oauth-client
tmpfs:
- /run:mode=777
- /tmp:mode=777
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- caddy_data:/data
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- php_run:/run/php
- ./public:/application:ro
app:
<<: *common
image: fixeditforyou/php8.1-fpm:dev
environment:
<<: *env
PHP_MEMORY_LIMIT: 512M
XDEBUG_IDE_KEY: "${XDEBUG_IDE_KEY:-PHPSTORM}"
PHP_IDE_CONFIG: >-
serverName=localhost
working_dir: /application
tmpfs:
- /run:mode=777
- /tmp:mode=777
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- php_run:/run/php
- .:/application:z
- "$HOME/.config/composer/:/tmp/composer"
- "$HOME/.cache/composer/:/tmp/composer/cache"
networks:
app-network:
driver: bridge
volumes:
caddy_data:
driver: local
php_run:
driver: local