Skip to content

Instantly share code, notes, and snippets.

@skluck
Created July 19, 2018 13:13
Show Gist options
  • Save skluck/1ff10bc4e2b91fe31496a46c803143f2 to your computer and use it in GitHub Desktop.
Save skluck/1ff10bc4e2b91fe31496a46c803143f2 to your computer and use it in GitHub Desktop.
old docker compose for hal 2
version: '3'
services:
hal-db:
image: "mysql:5.7"
ports:
- "${HOST_MYSQL_PORT:-3306}:3306"
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ${MYSQL_DATA_DIR}:/var/lib/mysqld
redis:
image: "redis:latest"
ports:
- "${HOST_REDIS_PORT:-6379}:6379"
caddy:
build:
context: ./caddy
args:
HOST_CADDY_PORT: ${HOST_CADDY_PORT:-8080}
ports:
- "${HOST_CADDY_PORT:-8080}:${HOST_CADDY_PORT:-8080}"
volumes:
- $FRONTEND_CODE_PATH:/hal-frontend:cached
links:
- hal-frontend
hal-frontend:
build: ./hal-frontend
ports:
- 9000:9000
links:
- hal-db
volumes:
- $FRONTEND_CODE_PATH:/hal-frontend/
working_dir: /hal-frontend
command: "/usr/sbin/php-fpm -F"
hal-agent:
build: ./hal-agent
environment:
- HAL_ENVIRONMENT=dev
- PHP_IDE_CONFIG="serverName=docker-conatiner"
ports:
- 22:22
volumes:
- $AGENT_CODE_PATH:/hal-agent/
- '/var/run/docker.sock:/var/run/docker.sock'
depends_on:
- hal-db
working_dir: /hal-agent
command: "/home/root/start.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment