mirror of https://github.com/kcal-app/kcal.git
Move production docker compose config to separate repo
This commit is contained in:
parent
6d4b42fa9a
commit
685233cb34
|
@ -1,62 +0,0 @@
|
|||
#
|
||||
# Kcal application configuration.
|
||||
#
|
||||
|
||||
APP_NAME=kcal
|
||||
APP_ENV=production
|
||||
APP_KEY=
|
||||
APP_DEBUG=false
|
||||
APP_URL=
|
||||
APP_PORT=80
|
||||
APP_PORT_SSL=443
|
||||
APP_TIMEZONE=UTC
|
||||
|
||||
#
|
||||
# Databases configuration.
|
||||
#
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=kcal
|
||||
DB_USERNAME=kcal
|
||||
DB_PASSWORD=kcal
|
||||
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
#
|
||||
# Search configuration.
|
||||
#
|
||||
|
||||
#SCOUT_DRIVER=null
|
||||
|
||||
#SCOUT_DRIVER=algolia
|
||||
#ALGOLIA_APP_ID=
|
||||
#ALGOLIA_SECRET=
|
||||
|
||||
SCOUT_DRIVER=elastic
|
||||
ELASTIC_HOST=elasticsearch:9200
|
||||
ELASTIC_PORT=9200
|
||||
|
||||
#
|
||||
# Media (image storage) configuration.
|
||||
#
|
||||
|
||||
MEDIA_DISK=local
|
||||
|
||||
#MEDIA_DISK=s3-public
|
||||
#AWS_ACCESS_KEY_ID=
|
||||
#AWS_SECRET_ACCESS_KEY=
|
||||
#AWS_DEFAULT_REGION=
|
||||
#AWS_BUCKET=
|
||||
|
||||
#
|
||||
# Misc. drivers and configuration.
|
||||
#
|
||||
|
||||
BROADCAST_DRIVER=redis
|
||||
CACHE_DRIVER=redis
|
||||
QUEUE_CONNECTION=redis
|
||||
SESSION_DRIVER=redis
|
||||
SESSION_LIFETIME=120
|
|
@ -12,7 +12,6 @@
|
|||
/vendor
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
docker-compose.yml
|
||||
docker-compose.override.yml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
|
|
|
@ -1,88 +0,0 @@
|
|||
version: '3'
|
||||
services:
|
||||
app:
|
||||
image: kcalapp/kcal
|
||||
container_name: kcal-app
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
working_dir: /var/www
|
||||
volumes:
|
||||
- './:/var/www'
|
||||
- './etc/php/php.ini:/usr/local/etc/php/conf.d/local.ini'
|
||||
networks:
|
||||
- kcal
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
- elasticsearch
|
||||
webserver:
|
||||
image: nginx:alpine
|
||||
container_name: kcal-nginx
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
ports:
|
||||
- '${APP_PORT:-80}:80'
|
||||
- '${APP_PORT_SSL:-443}:443'
|
||||
volumes:
|
||||
- './:/var/www'
|
||||
- './etc/nginx/conf.d/:/etc/nginx/conf.d/'
|
||||
networks:
|
||||
- kcal
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: kcal-db
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
ports:
|
||||
- '${DB_PORT:-3306}:3306'
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-kcal}'
|
||||
MYSQL_DATABASE: '${DB_DATABASE:-kcal}'
|
||||
MYSQL_USER: '${DB_USERNAME:-kcal}'
|
||||
MYSQL_PASSWORD: '${DB_PASSWORD:-kcal}'
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||
volumes:
|
||||
- 'db-data:/var/lib/mysql/'
|
||||
- './etc/mysql/my.cnf:/etc/mysql/my.cnf'
|
||||
networks:
|
||||
- kcal
|
||||
elasticsearch:
|
||||
image: 'elasticsearch:7.12.0'
|
||||
container_name: kcal-elasticsearch
|
||||
environment:
|
||||
- xpack.security.enabled=false
|
||||
- discovery.type=single-node
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
nofile:
|
||||
soft: 65536
|
||||
hard: 65536
|
||||
cap_add:
|
||||
- IPC_LOCK
|
||||
volumes:
|
||||
- 'elasticsearch-data:/usr/share/elasticsearch/data'
|
||||
ports:
|
||||
- '${ELASTIC_PORT:-9200}:9200'
|
||||
networks:
|
||||
- kcal
|
||||
redis:
|
||||
image: 'redis:alpine'
|
||||
container_name: kcal-redis
|
||||
ports:
|
||||
- '${REDIS_PORT:-6379}:6379'
|
||||
volumes:
|
||||
- 'redis-data:/data'
|
||||
networks:
|
||||
- kcal
|
||||
networks:
|
||||
kcal:
|
||||
driver: bridge
|
||||
volumes:
|
||||
db-data:
|
||||
driver: local
|
||||
elasticsearch-data:
|
||||
driver: local
|
||||
redis-data:
|
||||
driver: local
|
|
@ -1,4 +0,0 @@
|
|||
[mysqld]
|
||||
general_log = 1
|
||||
general_log_file = /var/lib/mysql/general.log
|
||||
secure-file-priv=NULL
|
|
@ -1,20 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
index index.php index.html;
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
root /var/www/public;
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
gzip_static on;
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
upload_max_filesize=40M
|
||||
post_max_size=40M
|
Loading…
Reference in New Issue