Skip to content

Instantly share code, notes, and snippets.

@lmillucci
Last active February 24, 2018 11:41
Show Gist options
  • Save lmillucci/4177ec1c5766d5fcd616f53c8a575d6d to your computer and use it in GitHub Desktop.
Save lmillucci/4177ec1c5766d5fcd616f53c8a575d6d to your computer and use it in GitHub Desktop.
docker-compose
version: '3'
services:
web:
build:
context: ./.docker
dockerfile: web.docker
container_name: nginx
ports:
- "8080:80"
volumes:
- ./.docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
app:
build:
context: ./.docker
dockerfile: app.docker
container_name: app
volumes:
- .:/var/www
logging:
options:
max-size: "10m"
max-file: "1"
pgsql:
build:
context: ./.docker
dockerfile: database.docker
container_name: pgsql
hostname: pgsql
ports:
- "5432:5432"
volumes:
- ./postgres-data/postgres:/var/lib/postgresql/data
logging:
options:
max-size: "1m"
max-file: "1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment