Skip to content

Instantly share code, notes, and snippets.

@supakornkim
Last active May 8, 2021 02:11
Show Gist options
  • Save supakornkim/e99928ee5050fa38312a9621c9445c42 to your computer and use it in GitHub Desktop.
Save supakornkim/e99928ee5050fa38312a9621c9445c42 to your computer and use it in GitHub Desktop.
drupal7 docker-compose
version: '3'
services:
drupal7:
image: drupal:7
container_name: drupal7
restart: always
depends_on:
- postgres
ports:
- "8091:80"
volumes:
- ./app/sites:/var/www/html/sites
environment:
- VIRTUAL_HOST=xxxxx.xip.io, xxxx.com
- VIRTUAL_PORT=8091
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
volumes:
- ./data:/var/lib/postgresql/data
networks:
default:
external:
name: nginx-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment