-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.02 KB
/
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
version: '3'
services:
web:
build:
context: ./freshcuts_server
image: fc_web:latest
command: bundle exec rails s -p 3000 -b '0.0.0.0' -e production
env_file: ./freshcuts_server/.env
volumes:
- ./freshcuts_server:/freshcuts
ports:
- "3001:3000"
depends_on:
- db
- solr
environment:
- VIRTUAL_HOST=fc.daemon.me.uk
solr:
build:
context: ./freshcuts_solr
image: fc_solr:latest
volumes:
- ./freshcuts_data/solr:/opt/solr/server/solr
ports:
- "8983:8983"
db:
image: postgres:9.6.3-alpine
environment:
- PGDATA=/pgdata
volumes:
- ./freshcuts_data/pgdata:/pgdata
ports:
- '5431:5432'
nginx-proxy:
image: jwilder/nginx-proxy:alpine
container_name: nginx-proxy
ports:
- '80:80'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro