mirror of
https://github.com/Team4388/scouting-2021.git
synced 2026-06-08 16:28:02 -06:00
create-react-app and couchdb
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user