-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
97 lines (93 loc) · 2.44 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "3.9"
volumes:
db-store:
psysh-store:
redis-store:
services:
app:
build:
context: .
dockerfile: ./infra/docker/php/Dockerfile
target: ${APP_BUILD_TARGET:-development}
volumes:
- type: bind
source: ./src
target: /data
- type: volume
source: psysh-store
target: /root/.config/psysh
volume:
nocopy: true
environment:
- APP_DEBUG=${APP_DEBUG:-true}
- APP_NAME=${APP_NAME:-squidmin}
- APP_KEY=${APP_KEY:-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}
- APP_ENV=${APP_ENV:-local}
- APP_URL=${APP_URL:-http://localhost}
- APP_NAME=${APP_NAME:-squidmin}
- LOG_CHANNEL=${LOG_CHANNEL:-stderr}
- LOG_STDERR_FORMATTER=${LOG_STDERR_FORMATTER:-Monolog\Formatter\JsonFormatter}
- DB_CONNECTION=${DB_CONNECTION:-mysql}
- DB_HOST=${DB_HOST:-db}
- DB_PORT=${DB_PORT:-3306}
- DB_DATABASE=${DB_DATABASE:-laravel}
- DB_USERNAME=${DB_USERNAME:-phper}
- DB_PASSWORD=${DB_PASSWORD:-secret}
- REDIS_HOST=${REDIS_HOST:-redis}
- REDIS_PASSWORD=null
- REDIS_PORT=6379
web:
build:
context: .
dockerfile: ./infra/docker/nginx/Dockerfile
ports:
- target: 80
published: ${WEB_PUBLISHED_PORT:-80}
protocol: tcp
mode: host
volumes:
- type: bind
source: ./src
target: /data
depends_on:
- app
- db
db:
build:
context: .
dockerfile: ./infra/docker/mysql/Dockerfile
ports:
- target: 3306
published: ${DB_PUBLISHED_PORT:-3306}
protocol: tcp
mode: host
volumes:
- type: volume
source: db-store
target: /var/lib/mysql
volume:
nocopy: true
environment:
- MYSQL_DATABASE=${DB_DATABASE:-laravel}
- MYSQL_USER=${DB_USERNAME:-phper}
- MYSQL_PASSWORD=${DB_PASSWORD:-secret}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-secret}
redis:
image: redis:6.2-alpine
volumes:
- type: volume
source: redis-store
target: /data
volume:
nocopy: true
squid:
ports:
- 13128:3128
build:
context: .
dockerfile: ./infra/docker/squid/Dockerfile
volumes:
- './infra/docker/squid/config:/etc/squid/conf.d:ro'
- './infra/docker/squid/external_module:/usr/lib/squid/external_module:ro'
environment:
- 'SQUID_CONFIG_FILE=/etc/squid/conf.d/squid.conf'