super-graph/docker-compose.yml

43 lines
775 B
YAML
Raw Normal View History

2019-03-24 14:57:29 +01:00
version: '3.4'
services:
db:
image: postgres
2019-09-05 06:09:56 +02:00
ports:
- "5432:5432"
2019-03-24 14:57:29 +01:00
# redis:
# image: redis:alpine
# command: ["redis-server", "--appendonly", "yes"]
# ports:
# - "6379:6379"
2019-10-01 06:00:15 +02:00
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
2019-08-04 08:23:23 +02:00
2019-03-24 14:57:29 +01:00
super_graph:
build:
context: .
target: go-build
2019-03-24 14:57:29 +01:00
environment:
GO_ENV: "development"
2019-07-30 07:38:05 +02:00
PORT: 8080
2019-03-24 14:57:29 +01:00
ports:
- "8080:8080"
volumes:
- .:/app
working_dir: /app
command: wu -pattern="*.go" go run main.go serv
depends_on:
- db
2019-10-01 06:00:15 +02:00
- rails_app
# - redis