Remove docker-compose.prod.yml since not actively maintained and there is no production
This commit is contained in:
parent
125da0b3d1
commit
eebf3a0989
14
README.md
14
README.md
|
@ -9,15 +9,19 @@
|
|||
```
|
||||
git submodule update --init
|
||||
```
|
||||
|
||||
### Start backend
|
||||
|
||||
* ```docker-compose up -d``` for dev setup. (The database will always be reinitiated, because new data is not stored in a volume.)
|
||||
* To have a setup with local volume provide ```-f docker-compose.prod.yml``` to the command in addition.
|
||||
### Start the services
|
||||
|
||||
```docker-compose up -d``` for dev setup.
|
||||
The database will use a volume to persist changes in-between runs.
|
||||
To start with a clean database, either delete the volume from the postgres configuration in the compose file
|
||||
or run ```docker volume rm candymat_db-data``` before starting the containers.
|
||||
|
||||
|
||||
### Where to access the services
|
||||
|
||||
* GraphQL IDE/GUI: http://localhost:5433/graphiql
|
||||
* GraphQL Endpoint: http://localhost:5433/graphql
|
||||
* UserApp: http://localhost:8080
|
||||
* RedaktionsApp: http://localhost:8081
|
||||
* RedaktionsApp: http://localhost:8081
|
||||
* Postgres database: http://localhost:5432
|
||||
|
|
|
@ -32,12 +32,14 @@ services:
|
|||
ports:
|
||||
- "5432:5432"
|
||||
restart: always
|
||||
volumes:
|
||||
- "db-data:/var/lib/postgresql/data"
|
||||
networks:
|
||||
- backend
|
||||
|
||||
graphql:
|
||||
restart: always
|
||||
image: graphile/postgraphile:4-5
|
||||
image: graphile/postgraphile
|
||||
depends_on:
|
||||
- postgres
|
||||
ports:
|
||||
|
@ -49,4 +51,7 @@ services:
|
|||
|
||||
networks:
|
||||
backend:
|
||||
frontend:
|
||||
frontend:
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
version: '3.1'
|
||||
|
||||
services:
|
||||
redaktion:
|
||||
build:
|
||||
context: ./redaktions-app/
|
||||
dockerfile: ./dev.Dockerfile
|
||||
depends_on:
|
||||
- graphql
|
||||
ports:
|
||||
- '8081:3000'
|
||||
networks:
|
||||
- frontend
|
||||
|
||||
user-app:
|
||||
build:
|
||||
context: ./candymat-user-app/
|
||||
dockerfile: ./dev.Dockerfile
|
||||
depends_on:
|
||||
- graphql
|
||||
ports:
|
||||
- "8080:8080"
|
||||
networks:
|
||||
- frontend
|
||||
|
||||
postgres:
|
||||
image: candymat-postgres:11.5
|
||||
build:
|
||||
dockerfile: ./Dockerfile
|
||||
context: ./backend/
|
||||
env_file: ./backend/.env-backend
|
||||
volumes:
|
||||
- "db-data:/var/lib/postgresql/data"
|
||||
restart: always
|
||||
networks:
|
||||
- backend
|
||||
|
||||
graphql:
|
||||
restart: always
|
||||
image: graphile/postgraphile
|
||||
depends_on:
|
||||
- postgres
|
||||
command: ["--connection", $DATABASE_URL, "--host", "0.0.0.0", "--port", "5000", "--schema", "candymat_data", "--watch"]
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
networks:
|
||||
backend:
|
||||
frontend:
|
||||
|
||||
volumes:
|
||||
db-data:
|
|
@ -35,5 +35,5 @@
|
|||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"proxy": "http://localhost:5000"
|
||||
"proxy": "http://graphql:5000"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue