Skip to content

Commit

Permalink
chore: clean Docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasleger committed Feb 7, 2025
1 parent c0443bb commit 4d1e33a
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
x-app-base: &app_base
build: .
volumes:
- "./:/app"
- "/app/node_modules"
env_file:
- ".env.development"
environment:
- DATABASE_URL=postgresql://postgres:dummy@db:5433
- SMTP_ADDRESS=mailcatcher
depends_on:
- db
- mailcatcher

services:
web:
build: .
volumes:
- "./:/app"
- "/app/node_modules"
<<: *app_base
ports:
- "3000:3000"
- "12345:12345"
env_file:
- '.env.development'
environment:
- DATABASE_URL=postgresql://postgres:dummy@db:5433
- SMTP_ADDRESS=mailcatcher
depends_on:
- db
- mailcatcher
worker:
<<: *app_base
command: bundle exec good_job start
db:
image: postgres:16
environment:
Expand Down

0 comments on commit 4d1e33a

Please sign in to comment.