-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
38 lines (38 loc) · 1.36 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
version: '3'
services:
db:
image: ${POSTGRES_IMAGE}
ports:
- "${HOST_DB_PORT}:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/data
volumes:
- ${HOST_APP_FOLDER}/config/docker/init.sql:/docker-entrypoint-initdb.d/init.sql
- ${POSTGRES_DATA}:/var/lib/postgresql/data
sirene:
build: ${HOST_APP_FOLDER}
image: ${SIRENE_IMAGE_NAME}
command: bin/rails server --port 3000 --binding 0.0.0.0
depends_on:
- db
ports:
- "${HOST_SOLR_PORT}:3000"
environment:
- RAILS_ENV=${RAILS_ENV}
- PGHOST=${PGHOST}
- PGUSER=${PGUSER}
- WAIT_HOSTS=db:5432
volumes:
- ${HOST_APP_FOLDER}/.last_monthly_stock_applied/:/docker_build/.last_monthly_stock_applied/
- ${HOST_APP_FOLDER}/tmp/:/docker_build/tmp/
- ${HOST_APP_FOLDER}/log/:/docker_build/log/
- ${HOST_APP_FOLDER}/solr/default/data/:/docker_build/solr/default/data/
- ${HOST_APP_FOLDER}/solr/development/data/:/docker_build/solr/development/data/
- ${HOST_APP_FOLDER}/solr/sandbox/data/:/docker_build/solr/sandbox/data/
- ${HOST_APP_FOLDER}/solr/production/data/:/docker_build/solr/production/data/
- ${HOST_APP_FOLDER}/solr/test/data/:/docker_build/solr/test/data/
links:
- db