Commit Graph

13 Commits

Author SHA1 Message Date
Javi Martín
d0f8a678ba Simplify entrypoint configuration 2022-04-08 16:13:09 +02:00
Javi Martín
facdfa639e Remove SSH_AUTH references in docker compose
It was added in commit 1db5a00ea, probably due to the Capistrano
configuration of the developer who wrote the code. On my machine, docker
compose crashed due to these lines.
2022-04-08 16:13:09 +02:00
Javi Martín
d1b45238ba Use a better name for the database volume
Having "example" in the name is an indicator that we're supposed to
change the name :).
2022-04-08 16:13:09 +02:00
Javi Martín
0294ceba56 Remove redundant Docker Compose configuration
The same values are already defined in the Dockerfile.
2022-04-08 16:13:09 +02:00
Javi Martín
54eb65b81d Don't use delegated volumes in Docker
We aren't sure why this option was added; only that it was added with
macos and windows developers in mind.

Since we aren't sure about it, we're using the default `consistent`
option instead.
2022-04-08 16:13:09 +02:00
Javi Martín
a6cda37113 Use environment variable for password in Docker
We were getting an error since we started using the postgres 9.6 image:

```
Attaching to app_1, database_1
database_1  | Error: Database is uninitialized and superuser password is not specified.
database_1  |        You must specify POSTGRES_PASSWORD to a non-empty value for the
database_1  |        superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
database_1  |
database_1  |        You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
database_1  |        connections without a password. This is *not* recommended.
database_1  |
database_1  |        See PostgreSQL documentation about "trust":
database_1  |        https://www.postgresql.org/docs/current/auth-trust.html
```
2021-04-23 12:23:17 +02:00
Javi Martín
01a1eb7f4d Use a maintained PostgreSQL version in Docker
Neither PostgreSQL version 9.4 nor version 9.5 are maintained anymore.
2021-04-21 19:08:21 +02:00
decabeza
eda6ea7f12 Merge branch 'master' into dashboard 2019-03-26 16:45:48 +01:00
Julian Herrero
6d281affa5 Use double quotes 2019-03-15 10:29:07 +01:00
Juan Salvador Pérez García
1db5a00eae Prepare capistrano/db migrations to support more setups (#2)
The following parameters have been added to deploy-secrets.yml:

* **use_rvm**: yes/no
* **ruby_version**: Ruby version for rvm. Defaults to 2.3.2
* **repository**: Git repository. Defaults to the oficial repository
* **branch**: Branch to deploy. Defaults to master
* **rails_env**: Defaults to the stage.

Fixed migrations that required admin rights. Now first check if the postgress extensions are available. If so finish without doing nothin.

Added support for passenger.
2018-07-17 17:46:54 +02:00
Juan Salvador Pérez García
8161045009 Docker/docker-compose enhancements
The following enhancements have been made to docker/docker-compose

* Fixed bug when building the image.
* docker-compose up starts the server
* Scaffolding inside the container respect the ownership of the files
outside it
* Volumes are tagged as 'delegated' in order to improve performance for
mac/windoze users.
* bundler stores packages in a volume. This whay new packages can be
added without rebuilding the image:

```bash
docker-compose run app bundle install
```
2018-06-01 15:51:06 +02:00
Daniel
2041c9b8bb modify docker compose to working with the code in realtime 2017-11-15 08:53:37 -06:00
Daniel
3e42182551 added Dockerfile and docker-compose.yml 2017-11-14 04:33:05 -06:00