create-react-app and couchdb

This commit is contained in:
Aquaticholic
2021-09-23 14:01:02 -06:00
parent 008c033e97
commit 3e543b37f7
44 changed files with 42911 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
version: "3"
services:
scouting-client:
container_name: "scouting-client"
build:
context: ./client
dockerfile: ./Dockerfile
env_file:
- .env
expose:
- 3000
- 5000
ports:
- "3000:3000"
- "5000:5000"
volumes:
- ./client:/app
couchdb:
container_name: "scouting-server"
restart: unless-stopped
build:
context: ./server
dockerfile: ./Dockerfile
expose:
- 5984
ports:
- "5984:5984"
env_file:
- .env
environment:
- COUCHDB_HOST=couchdb
- COUCHDB_PORT=5984
- COUCHDB_USER=${COUCHDB_USER}
- COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
volumes:
- ./server/db.local.ini:/opt/couchdb/etc/local.ini
- ./server/data:/opt/couchdb/data