Skip to content

Commit

Permalink
rename container's name
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorsloong committed Sep 17, 2020
1 parent 4a66f52 commit 3560002
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# salt's length at least be 8
AUTH_SALT=warriorsfly
DATABASE_URL=postgres://allen:walker@127.0.0.1/mimosa-postgres
DATABASE_URL=postgres://allen:walker@127.0.0.1/postgres
JWT_EXPIRATION=24
JWT_KEY=4125442A472D4B614E645267556B58703273357638792F423F4528482B4D6251
REDIS_URL=127.0.0.1:6379
Expand Down
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ services:
env_file:
- .env.docker
environment:
- DATABASE_URL=postgres://allen:walker@db/mimosa-postgres
- DATABASE_URL=postgres://allen:walker@db/postgres
depends_on:
- db
- redis

db:
image: postgres
container_name: mimosa-postgres
container_name: postgres
environment:
- POSTGRES_USER=allen
- POSTGRES_PASSWORD=walker
- POSTGRES_DB=mimosa-postgres
- POSTGRES_DB=postgres
ports:
- "5432:5432"
volumes:
- database_data:/var/lib/postgres/data
- ./migrations/00000000000000_diesel_initial_setup/up.sql:/docker-entrypoint-initdb.d/up1.sql
- ./migrations/2019-03-06-144033_create_users/up.sql:/docker-entrypoint-initdb.d/up2.sql
- ./migrations/2019-03-06-144624_create_followers/up.sql:/docker-entrypoint-initdb.d/up3.sql
- ./migrations/2019-03-06-145146_create_articles/up.sql:/docker-entrypoint-initdb.d/up4.sql
- ./migrations/2019-03-06-152302_create_comments/up.sql:/docker-entrypoint-initdb.d/up5.sql
- ./migrations/00000000000000_diesel_initial_setup/up.sql:/docker-entrypoint-initdb.d/00000000000000_diesel_initial_setup.sql
- ./migrations/2019-03-06-144033_create_users/up.sql:/docker-entrypoint-initdb.d/2019-03-06-144033_create_users.sql
- ./migrations/2019-03-06-144624_create_followers/up.sql:/docker-entrypoint-initdb.d/2019-03-06-144624_create_followers.sql
- ./migrations/2019-03-06-145146_create_articles/up.sql:/docker-entrypoint-initdb.d/2019-03-06-145146_create_articles.sql
- ./migrations/2019-03-06-152302_create_comments/up.sql:/docker-entrypoint-initdb.d/2019-03-06-152302_create_comments.sql

restart: always

redis:
image: redis
container_name: mimosa-redis
container_name: redis
ports:
- "6379:6379"
volumes:
Expand Down

0 comments on commit 3560002

Please sign in to comment.