Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Add initial Docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jul 12, 2020
1 parent 584de8a commit 26ecfde
Show file tree
Hide file tree
Showing 47 changed files with 15,409 additions and 466 deletions.
1 change: 0 additions & 1 deletion .ansible/files/authorized_keys

This file was deleted.

15 changes: 0 additions & 15 deletions .ansible/install_data.sh

This file was deleted.

50 changes: 0 additions & 50 deletions .ansible/install_requirements.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .ansible/inventories/dev

This file was deleted.

21 changes: 0 additions & 21 deletions .ansible/playbook.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .ansible/roles/app/tasks/main.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .ansible/roles/composer/tasks/main.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .ansible/roles/init/tasks/main.yml

This file was deleted.

1 change: 0 additions & 1 deletion .ansible/roles/init/templates/timezone.tpl

This file was deleted.

22 changes: 0 additions & 22 deletions .ansible/roles/mysql/tasks/main.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .ansible/roles/nginx/handlers/main.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .ansible/roles/nginx/tasks/main.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .ansible/roles/nginx/templates/default.tpl

This file was deleted.

8 changes: 0 additions & 8 deletions .ansible/roles/php5-cli/tasks/main.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .ansible/roles/php5-fpm/handlers/main.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .ansible/roles/php5-fpm/tasks/main.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .ansible/roles/phpcommon/tasks/main.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .ansible/vars/common.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .ansible/vars/mysql.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .ansible/vars/nginxphp.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG PHP_VERSION=7.4

FROM php:${PHP_VERSION}-fpm-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

RUN install-php-extensions apcu bz2 gd intl opcache pdo_mysql zip bcmath
RUN mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini

RUN apk --no-cache add bash git mysql-client unzip

ENV PATH="/srv/app/vendor/bin:/srv/app/bin:${PATH}"

WORKDIR /srv/app
13 changes: 13 additions & 0 deletions .docker/app/extra.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
date.timezone = UTC

upload_max_filesize = 20M
post_max_size = 20M

memory_limit = -1
opcache.enable = 1
opcache.revalidate_path = 0
opcache.max_accelerated_files = 20000
opcache.validate_timestamps = 1
opcache.memory_consumption = 256
realpath_cache_size = 5M
realpath_cache_ttl = 7200
12 changes: 12 additions & 0 deletions .docker/app/www.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[www]

user = root
group = root

listen = 127.0.0.1:9000

pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 5
Loading

0 comments on commit 26ecfde

Please sign in to comment.