super-graph/docker-compose.yml

43 lines
775 B
YAML

version: '3.4'
services:
db:
image: postgres
ports:
- "5432:5432"
# redis:
# image: redis:alpine
# command: ["redis-server", "--appendonly", "yes"]
# ports:
# - "6379:6379"
rails_app:
build: rails-app/.
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./rails-app:/app
- /app/tmp
ports:
- "3000:3000"
depends_on:
- db
super_graph:
build:
context: .
target: go-build
environment:
GO_ENV: "development"
PORT: 8080
ports:
- "8080:8080"
volumes:
- .:/app
working_dir: /app
command: wu -pattern="*.go" go run main.go serv
depends_on:
- db
- rails_app
# - redis