-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (100 loc) · 2.5 KB
/
docker-compose.yml
File metadata and controls
112 lines (100 loc) · 2.5 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
networks:
app:
driver: ${DOCKER_NETWORKS_DRIVER}
volumes:
storage_data:
driver: ${DOCKER_VOLUMES_DRIVER}
psysh:
driver: ${DOCKER_VOLUMES_DRIVER}
x-logging: &logging
options:
max-size: "10m"
max-file: "3"
x-core-config: &core-config
image: ${DOCKER_IMAGE}:${DOCKER_TAG}
user: ${DOCKER_USER:-appuser}
logging: *logging
restart: unless-stopped
volumes:
- storage_data:/var/www/storage
- psysh:/home/${DOCKER_USER:-appuser}
env_file:
- .env
networks:
- app
x-executable: &executable
hostname: ${DOCKER_HOSTNAME:-app-imaged-docker}
image: ${DOCKER_IMAGE}:${DOCKER_TAG}
user: ${DOCKER_USER:-appuser}
logging: *logging
restart: unless-stopped
env_file:
- .env
environment:
- USER=${DOCKER_USER:-appuser}
- PUID=${DOCKER_PUID:-1000}
- PGID=${DOCKER_PGID:-1000}
volumes:
- storage_data:/var/www/storage
networks:
- app
services:
gateway:
image: nginx:latest
restart: unless-stopped
volumes:
- ./config/gateway/main-site.conf:/etc/nginx/conf.d/default.conf
- ./config/gateway/upstream.conf:/etc/nginx/conf.d/upstream.conf
ports:
- ${DOCKER_PORT}:80
networks:
- app
core-blue:
<<: *core-config
hostname: core-blue
core-green:
<<: *core-config
hostname: core-green
artisan:
<<: *core-config
hostname: artisan
restart: "no"
profiles: ["tools"]
horizon:
<<: *executable
init: true
profiles: ["workers"]
command: ["/usr/bin/php", "/var/www/artisan", "horizon"]
scheduler:
<<: *executable
init: true
profiles: ["workers"]
command: ["/usr/bin/php", "/var/www/artisan", "schedule:work"]
sentry-relay:
image: getsentry/relay:latest
logging: *logging
restart: unless-stopped
environment:
RELAY_MODE: proxy
RELAY_UPSTREAM_URL: ${SENTRY_UPSTREAM:-https://sentry.io/}
RELAY_HOST: 0.0.0.0
RELAY_PORT: 3000
networks:
- app
pgbouncer:
image: edoburu/pgbouncer:latest
logging: *logging
restart: unless-stopped
environment:
- DB_HOST=${PGBOUNCER_UPSTREAM_HOST}
- DB_PORT=${PGBOUNCER_UPSTREAM_PORT:-5432}
- DB_USER=${PGBOUNCER_UPSTREAM_USERNAME}
- DB_PASSWORD=${PGBOUNCER_UPSTREAM_PASSWORD}
- DB_NAME=${PGBOUNCER_UPSTREAM_DATABASE}
- POOL_MODE=transaction
- MAX_CLIENT_CONN=100
- DEFAULT_POOL_SIZE=20
- AUTH_TYPE=${PGBOUNCER_AUTH_TYPE:-scram-sha-256}
- IGNORE_STARTUP_PARAMETERS=extra_float_digits
networks:
- app