Skip to content

Commit

Permalink
docker compose minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
faxad committed Sep 24, 2019
1 parent 9cd08e4 commit c5b3e34
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
version: '3'

volumes:
static: {}
version: '3.5'

services:
db:
image: postgres
hostname: db
networks:
activflow-net:
app:
build:
context: .
Expand All @@ -15,20 +14,30 @@ services:
- ENV=staging
command: sh ./scripts/on-container-start.sh
hostname: activflow
expose:
- "8000"
volumes:
- ./:/app
- static:/app/activflow/static
expose:
- "8000"
networks:
activflow-net:
depends_on:
- db
nginx:
web:
image: nginx:latest
hostname: nginx
ports:
- "8000:8000"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- static:/static
networks:
activflow-net:
depends_on:
- app

volumes:
static:

networks:
activflow-net:

0 comments on commit c5b3e34

Please sign in to comment.