misc development docker-compose.yml improvements (#1905)

* tweaks

* selective bind mounts

* code review: missing some files in bind mount
pull/1914/head
Elliott Shugerman 5 years ago committed by GitHub
parent a581d9837a
commit 4b7bd98143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
version: "3"
services:
db:
container_name: wiki-db
image: postgres:9-alpine
environment:
POSTGRES_DB: wiki
@ -13,26 +14,22 @@ services:
driver: "none"
volumes:
- db-data:/var/lib/postgresql/data
networks:
- wikinet
ports:
- "15432:5432"
adminer:
container_name: wiki-adminer
image: adminer:latest
logging:
driver: "none"
networks:
- wikinet
ports:
- "3001:8080"
# solr:
# container_name: wiki-solr
# image: solr:7-alpine
# logging:
# driver: "none"
# networks:
# - wikinet
# ports:
# - "8983:8983"
# volumes:
@ -43,21 +40,19 @@ services:
# - wiki
wiki:
container_name: wiki-app
build:
context: ../..
dockerfile: dev/containers/Dockerfile
depends_on:
- db
networks:
- wikinet
ports:
- "3000:3000"
volumes:
- ../..:/wiki
- /wiki/node_modules
- /wiki/.git
networks:
wikinet:
volumes:
db-data:

Loading…
Cancel
Save