[98bc2a]: / docker-compose.yml  Maximize  Restore  History

Download this file

108 lines (100 with data), 3.5 kB

  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
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
services:
web:
build: .
image: allura-web # default in Compose 2+, makes work in Compose 1.x
environment: &env
# PATH=/allura-data/virtualenv/bin:$PATH doesn't work; see https://github.com/docker/compose/issues/650
- PATH=/allura-data/virtualenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ports:
- "8088:8088"
volumes: &volumes
- .:/allura # Allura source code from local host
- ${LOCAL_SHARED_DATA_ROOT:-./allura-data}:/allura-data # for virtualenv, scm repos, etc
- ${LOCAL_SHARED_DATA_ROOT:-./allura-data}/root/home:/root # for persistent home dir, mainly for pudb
links:
- mongo
- solr
ulimits:
nofile:
soft: 65536
hard: 65536
taskd:
image: allura-web
working_dir: /allura/Allura
environment: *env
command: paster taskd docker-dev.ini
volumes: *volumes
links:
- mongo
- solr
- outmail
healthcheck:
test: ["CMD", "pgrep", "-f", "taskd"]
solr:
image: solr:6-alpine # alpine is a very small distro base
ports:
- "8983:8983"
volumes:
- ./solr_config/allura:/opt/solr/server/solr/allura
- ${LOCAL_SHARED_DATA_ROOT:-./allura-data}/solr:/opt/solr/server/solr/allura/data
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:8983/solr/allura/admin/ping"]
start_interval: 1s
start_period: 30s
mongo:
image: mongo:4.2
ports:
- "27017:27017"
volumes:
- ${LOCAL_SHARED_DATA_ROOT:-./allura-data}/mongo:/data/db
command: mongod --storageEngine wiredTiger
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
start_interval: 1s
start_period: 30s
outmail:
image: allura-web
environment: *env
volumes_from:
- web
command: python -u -m aiosmtpd -n -c alluratest.smtp_debug.BetterDebuggingServer -l 0.0.0.0:8826
expose:
- "8826"
healthcheck:
test: ["CMD", "python", "-c", "import socket; socket.create_connection(('localhost', 8826), 5).close()"]
inmail:
image: allura-web
working_dir: /allura/Allura
environment: *env
volumes: *volumes
command: paster smtp_server docker-dev.ini
ports:
- "8825:8825"
links:
- mongo
healthcheck:
test: ["CMD", "python", "-c", "import socket; socket.create_connection(('localhost', 8825), 5).close()"]
http:
build: scm_config/git-http/
ports:
- "8080:80"
volumes: *volumes
links:
- mongo
- web