Skip to content

Commit

Permalink
Docker compose for locla developemnt - TO BE DELETED BEFORE MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwolfz committed Feb 25, 2024
1 parent c13d9bc commit f501f90
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,5 @@ DEPENDENCIES
xpath (= 3.2.0)
yard

RUBY VERSION
ruby 3.2.2p53

BUNDLED WITH
2.4.22
59 changes: 59 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---

version: '2.4'

networks:
internal_network:
driver: bridge

volumes:
bundle_data:
driver: local
postgres_data:
driver: local

x-default-logging: &logging
logging:
options:
max-size: '12m'
max-file: '5'
driver: json-file

services:
console:
image: ruby
command: sleep 10000000;
environment:
CI: t
PGHOST: postgres
PGUSER: administrate
PGPASSWORD: administrate
<<: *logging
networks:
- internal_network
stdin_open: true
tty: true
volumes:
- .:/work
- bundle_data:/usr/local/bundle
working_dir: /work

postgres:
image: postgres
environment:
POSTGRES_USER: administrate
POSTGRES_DB: administrate_test
POSTGRES_PASSWORD: administrate
healthcheck:
test: pg_isready -U notroot -h localhost -p 5432 -d healthcheck-db || exit 1
interval: '10s'
retries: 20
start_period: '10s'
timeout: '7s'
<<: *logging
networks:
- internal_network
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data

0 comments on commit f501f90

Please sign in to comment.