diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index bede0c3..ff77733 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -1,38 +1,41 @@ -source: - image: pythonph/pythonph - volumes: - - /usr/src/app/venv - - /usr/src/app/node_modules - - /usr/src/app/bower_components - - /usr/src/app/static - environment: - - ENV=DEV - env_file: dev.env - command: bin/install +version: "3" -db: - image: postgres:latest - environment: - - ENV=DEV - env_file: dev.env - -web: - image: pythonph/pythonph - volumes_from: - - source - environment: - - ENV=DEV - env_file: dev.env - ports: - - 8000:8000 - links: - - db:db - command: gunicorn -b 0.0.0.0:8000 --access-logfile - --error-logfile - pythonph.wsgi - -nginx: - build: nginx - ports: - - 8080:80 - - 443:443 - links: - - web:web +services: + source: + image: pythonph/pythonph + volumes: + - /usr/src/app/venv + - /usr/src/app/node_modules + - /usr/src/app/bower_components + - /usr/src/app/static + environment: + - ENV=DEV + env_file: dev.env + command: bin/install + + db: + image: postgres:latest + environment: + - ENV=DEV + env_file: dev.env + + web: + image: pythonph/pythonph + volumes_from: + - source + environment: + - ENV=DEV + env_file: dev.env + ports: + - 8000:8000 + links: + - db:db + command: gunicorn -b 0.0.0.0:8000 --access-logfile - --error-logfile - pythonph.wsgi + + nginx: + build: nginx + ports: + - 8080:80 + - 443:443 + links: + - web:web diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index b6fa456..c1d0626 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -1,28 +1,32 @@ -source: - image: pythonph/pythonph - volumes: - - /usr/src/app/venv - - /usr/src/app/node_modules - - /usr/src/app/bower_components - - /usr/src/app/static - environment: - - ENV=PROD - env_file: prod.env - command: bin/install +version: "3" -web: - image: pythonph/pythonph - volumes_from: - - source - environment: - - ENV=PROD - env_file: prod.env - command: gunicorn -b 0.0.0.0:8000 --access-logfile - --error-logfile - pythonph.wsgi - -nginx: - build: nginx - ports: - - 80:80 - - 443:443 - links: - - web:web +services: + source: + image: pythonph/pythonph + volumes: + - /usr/src/app/venv + - /usr/src/app/node_modules + - /usr/src/app/bower_components + - /usr/src/app/static + environment: + - ENV=PROD + env_file: prod.env + command: bin/install + + web: + image: pythonph/pythonph + volumes_from: + - source + environment: + - ENV=PROD + env_file: prod.env + command: gunicorn -b 0.0.0.0:8000 --access-logfile - --error-logfile - pythonph.wsgi + + nginx: + build: nginx + ports: + - 80:80 + - 443:443 + links: + - web:web + \ No newline at end of file