-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (44 loc) · 931 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '2'
services:
# proxy:
# image: jwilder/nginx-proxy
# ports:
# - '80:80'
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock
frontend:
build: ./frontend
container_name: githopper_frontend
command: npm run start
ports:
- '8080:80'
volumes:
- ./frontend:/app
environment:
NODE_ENV: development
# VIRTUAL_HOST: githopper.dev
backend:
build: ./backend
container_name: githopper_backend
command: rails s -b 0.0.0.0 -p 3050
ports:
- '3050:3050'
depends_on:
- db
- frontend
volumes:
- ./backend:/app
- bundle:/usr/local/bundle
- db_data:/var/lib/postgresql/data
environment:
RAILS_ENV: development
# environment:
# VIRTUAL_HOST: api.githopper.dev
db:
image: postgres:9.6
container_name: githopper_db
ports:
- '5432'
volumes:
db_data:
bundle: