-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
version: '3.5' | ||
services: | ||
|
||
sqldb: | ||
image: mysql:5.7 | ||
environment: | ||
- MYSQL_DATABASE=${DOCKER_DB_DATABASE:-arc} | ||
- MYSQL_USER=${DOCKER_DB_USER:-arc} | ||
- MYSQL_PASSWORD=${DOCKER_DB_PASSWORD:-changem3please} | ||
- MYSQL_ROOT_PASSWORD=${DOCKER_DB_ROOT:-reallychangethisplease} | ||
# ports: # Uncomment this to expose your DB on port 3336 | ||
# - 3336:3306 | ||
# volumes: | ||
# Any sql or sh files in this folder (e.g. db restore) are run on initialisation | ||
# See https://hub.docker.com/_/mysql -> Initializing a fresh instance | ||
# - ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d | ||
command: --default-storage-engine innodb | ||
restart: unless-stopped | ||
|
||
nginx: | ||
image: arc/nginx | ||
ports: | ||
- 8000:80 | ||
volumes: | ||
- public:/opt/project/public:ro | ||
restart: unless-stopped | ||
depends_on: | ||
- arc | ||
healthcheck: | ||
test: wget --spider http://nginx/health || exit 1 | ||
interval: 20s | ||
start_period: 10s | ||
timeout: 10s | ||
retries: 3 | ||
|
||
arc: | ||
build: | ||
context: ../service | ||
target: dev | ||
image: arc:fpm-dev | ||
environment: | ||
APP_ENV: "local" | ||
RUN_AS: "10001:50" | ||
BRANCH: ${BRANCH:-develop} | ||
DB_DATABASE: ${DOCKER_DB_DATABASE:-arc} | ||
DB_HOST: ${DOCKER_DB_HOST:-sqldb} | ||
DB_PASSWORD: ${DOCKER_DB_PASSWORD:-changem3please} | ||
DB_PORT: ${DOCKER_DB_PORT:-3306} | ||
DB_USERNAME: ${DOCKER_DB_USERNAME:-arc} | ||
volumes: | ||
- public:/opt/project/public | ||
- ${APP_ROOT}/app:/opt/project/app | ||
- ${APP_ROOT}/config:/opt/project/config | ||
- ${APP_ROOT}/database:/opt/project/database | ||
- ${APP_ROOT}/resources:/opt/project/resources | ||
- ${APP_ROOT}/routes:/opt/project/routes | ||
- ${APP_ROOT}/tests:/opt/project/tests | ||
# .sh files in this dir will be executed on startup after migrations are run | ||
- ./docker-entrypoint-init.d:/docker-entrypoint-init.d | ||
# Needed if we want to save passport key | ||
# - ./.env:/opt/arc/ # touch .env before starting | ||
restart: unless-stopped | ||
# entrypoint: bash | ||
# stdin_open: true # docker run -i | ||
# tty: true # docker run -t | ||
|
||
mailer: | ||
image: schickling/mailcatcher | ||
ports: | ||
- "${MAILER_SMTP_PORT:-1025}:1025" | ||
- "${MAILER_ADMIN_PORT:-1080}:1080" | ||
|
||
volumes: | ||
public: | ||
mysql: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DOCKER_DB_DATABASE=arc | ||
DOCKER_DB_USER=arc | ||
DOCKER_DB_PASSWORD=changem3please | ||
DOCKER_DB_ROOT=reallychangethisplease | ||
APP_ROOT=/home/tobias/usr/arc/service/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
zend_extension=xdebug | ||
|
||
[xdebug] | ||
xdebug.mode=develop,debug | ||
xdebug.client_host=host.docker.internal | ||
xdebug.start_with_request=yes |