Skip to content

Commit

Permalink
Specify networks for each service individually
Browse files Browse the repository at this point in the history
  • Loading branch information
braktar committed Feb 26, 2024
1 parent 45182d5 commit 9ea10be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ x-default-service: &default-service
SENTRY_DSN: ${SENTRY_DSN:-}
volumes:
- .:/srv/app
networks:
- private-network
depends_on:
- redis-resque

Expand All @@ -26,6 +24,7 @@ services:
ports:
- "8083:80" # HOST:CONTAINER, edit only HOST part
networks:
- private-network
- public-network
command: bundle exec puma -v -p 80 --pidfile 'server.pid'
restart: unless-stopped
Expand All @@ -36,6 +35,8 @@ services:
<<: *default-environment
COUNT: 5
QUEUES: DEFAULT
networks:
- private-network
command: bundle exec rake resque:workers --trace
restart: unless-stopped

Expand Down

0 comments on commit 9ea10be

Please sign in to comment.