Skip to content

Instantly share code, notes, and snippets.

@lgvital
Created August 14, 2019 04:49
Show Gist options
  • Save lgvital/807abb61fd95f1904fd14401fa54b1a6 to your computer and use it in GitHub Desktop.
Save lgvital/807abb61fd95f1904fd14401fa54b1a6 to your computer and use it in GitHub Desktop.
services:
django:
command: /start
links:
- postgres
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: lionelv/cookiecutter_aws_production_django
postgres:
env_file:
- ./.envs/.production/.postgres
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: lionelv/cookiecutter_aws_production_postgres
traefik:
links:
- django
build:
context: .
dockerfile: ./compose/production/traefik/Dockerfile
image: lionelv/cookiecutter_aws_production_traefik
ports:
- 0.0.0.0:80:80
version: '3'
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
production_traefik: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment