Skip to content

Instantly share code, notes, and snippets.

@akerouanton
Created September 5, 2019 09:56
Show Gist options
  • Save akerouanton/af9d65dfa5b5db7a355b486b0b171d34 to your computer and use it in GitHub Desktop.
Save akerouanton/af9d65dfa5b5db7a355b486b0b171d34 to your computer and use it in GitHub Desktop.
# syntax=akerouanton/webdf
services:
- name: api
type: php
version: 7.0.29
system_packages:
git: "1:2.1.4-2.1+deb8u7"
libicu-dev: "52.1-8+deb8u7"
libpcre3-dev: "2:8.35-3.3+deb8u4"
libssl-dev: "1.0.1t-1+deb8u11"
openssl: "1.0.1t-1+deb8u11"
wget: "1.16-1+deb8u5"
zlib1g-dev: "1:1.2.8.dfsg-2+b1"
libxml2-dev: "2.9.1+dfsg1-5+deb8u7"
unzip: "6.0-16+deb8u5"
extensions:
apcu: "*"
intl: "*"
# @TODO: should not be enabled in dev stage
opcache: "*"
pdo_mysql: "*"
redis: "*"
soap: "*"
sockets: "*"
# @TODO: should be added automatically as it's requied by Composer
zip: "*"
integrations:
- blackfire
source_dirs:
- './app'
- './src'
extra_scripts:
- './bin/console'
- './web/app.php'
stateful_dirs:
- './web/uploads'
ini_file: 'docker/app/php.prod.ini'
fpm_config_file: 'docker/app/fpm.conf'
# @TODO: Add an ADR about stage management
# stages:
# - name: dev
# development: true
# - name: preprod
# server: i24news.preprod-knp
# remote_path: /home/deploy/apps/i24news.api
# - name: prod
# swarm: true
# regions:
# - region: eu
# server: i24news.prod.eu.vm1
# remote_path: /home/knplabs/apps/i24news.api
#  - region: us
# server: i24news.prod.us.vm1
# remote_path: /home/knplabs/apps/i24news.api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment