Skip to content

Commit be02d79

Browse files
committed
Rename docker compose image and paths
1 parent b3ed672 commit be02d79

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
99

1010
RUN apt-get update -qq && apt-get install -y yarn
1111

12-
RUN mkdir /btc
13-
WORKDIR /btc
14-
COPY Gemfile /btc/Gemfile
15-
COPY Gemfile.lock /btc/Gemfile.lock
12+
RUN mkdir /community-engine
13+
WORKDIR /community-engine
14+
COPY Gemfile /community-engine/Gemfile
15+
COPY Gemfile.lock /community-engine/Gemfile.lock
1616

1717
RUN gem uninstall bundler
1818
RUN gem install bundler:2.4.13
1919

20-
COPY . /btc
20+
COPY . /community-engine

docker-compose.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
version: '3.6'
22

33
volumes:
4-
btc-bundler-gems:
5-
btc-db-data:
6-
btc-redis:
4+
community-engine-bundler-gems:
5+
community-engine-db-data:
6+
community-engine-redis:
77

88
x-env-info: &env-info
99
env_file:
1010
- './docker-env.conf'
1111

1212
x-app-shared: &app-shared
1313
<<: *env-info
14-
image: better-together/community-engine:latest
14+
image: better-together/community-engine:dev
1515
volumes:
16-
- .:/btc
17-
- btc-bundler-gems:/usr/local/bundle/
16+
- .:/community-engine
17+
- community-engine-bundler-gems:/usr/local/bundle/
1818
depends_on:
1919
- db
2020
# - redis
2121

2222
services:
2323
app: &app
2424
<<: *app-shared
25-
container_name: btc-app
25+
container_name: community-engine-app
2626
build: .
2727
command: bash -c "rm -f spec/dummy/tmp/pids/server.pid && cd ./spec/dummy && bundle exec rails s -p 3000 -b '0.0.0.0'"
2828
ports:
@@ -31,21 +31,21 @@ services:
3131
tty: true
3232
# sidekiq:
3333
# <<: *app-shared
34-
# container_name: btc-sidekiq
34+
# container_name: community-engine-sidekiq
3535
# command: bundle exec sidekiq -C config/sidekiq.yml
3636
# depends_on:
3737
# - app
3838
db:
39-
container_name: btc-db
39+
container_name: community-engine-db
4040
<<: *env-info
4141
image: postgis/postgis:latest
4242
volumes:
43-
- btc-db-data:/var/lib/postgresql/data
43+
- community-engine-db-data:/var/lib/postgresql/data
4444
ports:
4545
- 5440:5432
4646
# redis:
4747
# image: 'redis:4.0-alpine'
48-
# container_name: btc-redis
48+
# container_name: community-engine-redis
4949
# command: redis-server
5050
# volumes:
51-
# - btc-redis:/data
51+
# - community-engine-redis:/data

spec/dummy/config/database.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ default: &default
2323

2424
development:
2525
<<: *default
26-
database: btc_dummy_development
26+
database: community-engine_dummy_development
2727

2828
# Warning: The database defined as "test" will be erased and
2929
# re-generated from your development database when you run "rake".
3030
# Do not set this db to the same as development or production.
3131
test:
3232
<<: *default
33-
database: btc_dummy_test
33+
database: community-engine_dummy_test
3434

3535
# As with config/secrets.yml, you never want to store sensitive information,
3636
# like your database password, in your source code. If your source code is
@@ -53,6 +53,6 @@ test:
5353
#
5454
production:
5555
<<: *default
56-
database: btc_dummy_production
56+
database: community-engine_dummy_production
5757
username: dummy
5858
password: <%= ENV['BETTER_TOGETHER_DATABASE_PASSWORD'] %>

0 commit comments

Comments
 (0)