forked from 123inkt/123view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
43 lines (36 loc) · 1.34 KB
/
docker-compose.production.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
## overrides for production
version: '3'
services:
nginx:
volumes:
- ./docker/ssl/production/dhparam.pem:/etc/ssl/certs/dhparam.pem:ro
- ./docker/ssl/production/production.crt:/etc/ssl/certs/123view-cert.crt:ro
- ./docker/ssl/production/production.key:/etc/ssl/private/123view-cert.key:ro
restart: unless-stopped
php-fpm:
build:
target: prod
environment:
DATABASE_URL: mysql://${DB_USER}:${DB_PASS}@mysql:3306/${DB_NAME:-123view}?serverVersion=${MYSQL_VERSION}&charset=utf8mb4
APP_ENV: prod
restart: unless-stopped
mysql:
environment:
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: ${DB_NAME:-123view}
MYSQL_ROOT_PASSWORD: ${DB_PASS}
restart: unless-stopped
rabbitmq:
environment:
RABBITMQ_DISK_FREE_ABSOLUTE_LIMIT: 1GB
RABBITMQ_USERNAME: ${RABBITMQ_USERNAME}
RABBITMQ_PASSWORD: ${RABBITMQ_PASSWORD}
restart: unless-stopped
mercure:
volumes:
- ./docker/ssl/production/production.crt:/etc/ssl/certs/123view-cert.crt:ro
- ./docker/ssl/production/production.key:/etc/ssl/private/123view-cert.key:ro
restart: unless-stopped
mail:
restart: unless-stopped