Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 40 additions & 37 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -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
58 changes: 31 additions & 27 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -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