-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.deploy.yml
115 lines (108 loc) · 3.09 KB
/
docker-compose.deploy.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: "3.8"
services:
app:
build:
context: ../config/deploy
dockerfile: Dockerfile
working_dir: /application
volumes:
- ../config/deploy/nginx.conf:/etc/nginx/nginx.conf:ro
- ../config/deploy/php.ini:/usr/local/etc/php/conf.d/zzz-overrides.ini:ro
- ../config/deploy/php-fpm.conf:/usr/local/etc/php-fpm.d/zzz-overrides.conf:ro
- ../config/deploy/supervisord.conf:/etc/supervisor/custom-supervisord.conf:ro
- .:/application
- /etc/letsencrypt:/etc/nginx/ssl
ports:
- "80:80"
- "443:443"
networks:
- nature-deploy-prod
restart: unless-stopped
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:8.0
volumes:
- nature-deploy-mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
networks:
- nature-deploy-prod
ports:
- "3306"
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
ports:
- "6379"
volumes:
- nature-deploy-redis-data:/data
networks:
- nature-deploy-prod
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
retries: 3
timeout: 5s
meilisearch:
image: 'getmeili/meilisearch:latest'
ports:
- "7700"
environment:
MEILI_NO_ANALYTICS: '${MEILISEARCH_NO_ANALYTICS:-false}'
MEILI_MASTER_KEY: '${MEILISEARCH_KEY}'
volumes:
- 'nature-deploy-meilisearch-data:/meili_data'
networks:
- nature-deploy-prod
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
retries: 3
timeout: 5s
soketi:
image: 'quay.io/soketi/soketi:1.4-16-debian'
command: ['soketi', 'start']
volumes:
- /etc/letsencrypt:/etc/nginx/ssl
environment:
SOKETI_DEBUG: '1'
SOKETI_PORT: ${PUSHER_PORT}
SOKETI_METRICS_SERVER_PORT: ${SOKETI_METRICS_SERVER_PORT:-9601}
SOKETI_DEFAULT_APP_ID: ${PUSHER_APP_ID}
SOKETI_DEFAULT_APP_KEY: ${PUSHER_APP_KEY}
SOKETI_DEFAULT_APP_SECRET: ${PUSHER_APP_SECRET}
SOKETI_DB_REDIS_HOST: ${SOKETI_DB_REDIS_HOST}
SOKETI_DB_REDIS_PASSWORD: ${SOKETI_DB_REDIS_PASSWORD}
SOKETI_DB_REDIS_PORT: ${SOKETI_DB_REDIS_PORT:-6379}
SOKETI_DB_REDIS_DB: ${SOKETI_DB_REDIS_DB:-0}
SOKETI_SSL_CERT: ${SOKETI_SSL_CERT}
SOKETI_SSL_KEY: ${SOKETI_SSL_KEY}
ports:
- "${PUSHER_PORT}:${PUSHER_PORT}"
- "9601"
depends_on:
- redis
networks:
- nature-deploy-prod
networks:
nature-deploy-prod:
driver: bridge
external: false
name: nature-deploy-prod
volumes:
nature-deploy-mysql-data:
name: nature-deploy-mysql-data
nature-deploy-redis-data:
name: nature-deploy-redis-data
nature-deploy-meilisearch-data:
name: nature-deploy-meilisearch-data