misc development docker-compose.yml improvements (#1905)
* tweaks * selective bind mounts * code review: missing some files in bind mount
This commit is contained in:
parent
a581d9837a
commit
4b7bd98143
@ -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…
Reference in New Issue
Block a user