Commit Graph

7 Commits

Author SHA1 Message Date
Gergő Jedlicska 356467b618 fix(dockerfile, docker-compose.yaml): add wait for db and redis to server container
When starting the server via docker-compose currently the server starts up faster than the postgres
instance. This causes the server app to crash. The fix now adds a wait script that pings the
database and the cache containers unit they properly start up. This delays the server boot until all
deps are started.
2021-01-30 16:43:23 +01:00
Gergő Jedlicska a241dfc0c0 refactor(docker-compose and db init): rewrote docker-compose to work purely with env variables
It is possible to rename the default db in a postgres container instance via an env variable. This
renders the initdb script useless. The only shortcoming is that the app now uses the db root user
which is not ideal but its fine for a dev environment.
2021-01-27 19:55:52 +01:00
Gergő Jedlicska 299ceee3a1 feat(dockerfile docker-compose app.js): production environment compatible build
Add consistent and optimized dockerfile with docs. Move http-proxy require to only in dev
environment. Removes mounting of server source code in the container. Restrict debug loggin only for
`speckle:*` logger.
2021-01-19 21:57:03 +01:00
Gergő Jedlicska 51a6cacf5b add Dockerfile for server and frontend
add reddis insigth container for redis management

with a slightly hackish way (mounting the server forder inside the container)
add working server app with only `docker-compose up`
2021-01-18 21:15:06 +01:00
Gergő Jedlicska d1b2fb90bb added pgadmin service to compose 2021-01-14 19:28:15 +01:00
Gergő Jedlicska 500331d6a3 feat(docker-compose and database): automated database initialization scripts
To bootstrap a local database container for Speckle Server an init script is added and it is mounted
to the container. Knexfile also had to be modified for in code connection string buildup.

#73
2021-01-14 18:27:53 +01:00
Gergő Jedlicska a64b6ee8a1 feat(docker-compose.yaml): added sample compose file with database and redis
To enable easy infrastructure configuration a docker compose file was added with a basic redis and
postgresql config
2021-01-05 21:10:50 +01:00