Skip to content

Commit

Permalink
Remove Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Apr 18, 2021
1 parent 738268e commit a48cd63
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ jobs:
environment:
MIX_ENV: test
DATABASE_URL: "postgres://postgres@localhost:5432/asciinema_test"
REDIS_URL: "redis://localhost:6379"
- image: circleci/postgres:10
environment:
POSTGRES_USER: postgres
POSTGRES_DB: asciinema_test
POSTGRES_HOST_AUTH_METHOD: trust
- image: circleci/redis:5

working_directory: ~/repo
steps:
Expand Down
4 changes: 0 additions & 4 deletions .env.production.sample
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ SECRET_KEY_BASE=
## Default: postgresql://postgres@postgres/postgres
# DATABASE_URL=

## Redis connection URL.
## Default: redis://redis:6379
# REDIS_URL=

## Enable auto-archival of recordings uploaded by anonymous users.
## Set this variable to number of days after which the recordings are archived.
## Default: unset (no auto-archival)
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ COPY .iex.exs .

ENV PORT 4000
ENV DATABASE_URL "postgresql://postgres@postgres/postgres"
ENV REDIS_URL "redis://redis:6379"
ENV RSVG_FONT_FAMILY "Dejavu Sans Mono"
ENV PATH "/opt/app/bin:${PATH}"

Expand Down
2 changes: 0 additions & 2 deletions dev/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ URL_PORT=4000
SECRET_KEY_BASE=19c70247f4034dd5ce4f3d6bd3b2b592624b63439d518367de9add564fdee9e6b8513f6cec24c2a933a84ea639136786813bb70d3dc4e84a365205a52e5bf1fa
DATABASE_URL=postgresql://postgres@postgres/asciinema_dev
TEST_DATABASE_URL=postgresql://postgres@postgres/asciinema_test
REDIS_URL=redis://redis:6379/0
TEST_REDIS_URL=redis://redis:6379/1
5 changes: 0 additions & 5 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ services:
ports:
- 2345:5432

redis:
image: redis
container_name: asciinema_dev_redis

nginx:
image: nginx:alpine
container_name: asciinema_dev_nginx
Expand All @@ -38,7 +34,6 @@ services:
entrypoint: env -u MIX_ENV -u PORT
command: mix phx.server
links:
- redis
- postgres
env_file: .env.development
ports:
Expand Down
10 changes: 0 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ services:
### See https://hub.docker.com/_/postgres/ for more
### configuration options for this image.

redis:
image: redis:4.0-alpine
container_name: asciinema_redis
restart: unless-stopped
volumes:
- ./volumes/redis:/data
### See https://hub.docker.com/_/redis/ for more
### configuration options for this image.

smtp:
image: namshi/smtp
container_name: asciinema_smtp
Expand Down Expand Up @@ -50,7 +41,6 @@ services:
container_name: asciinema_phoenix
restart: unless-stopped
links:
- redis
- postgres
- smtp
env_file: .env.production
Expand Down

0 comments on commit a48cd63

Please sign in to comment.