Skip to content

Commit

Permalink
add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HikaruSato committed Jul 9, 2022
1 parent 3ff06f0 commit a6164b5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,25 @@
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres_volume:/var/lib/postgresql/data
restart: always
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
volumes:
postgres_volume:

0 comments on commit a6164b5

Please sign in to comment.