Last active
February 24, 2018 11:41
-
-
Save lmillucci/4177ec1c5766d5fcd616f53c8a575d6d to your computer and use it in GitHub Desktop.
docker-compose
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
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