-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.09 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
42
43
44
45
version: '3'
# Meant for local development
services:
db:
image: 'postgis/postgis:13-3.1-alpine'
container_name: 'postgres'
restart: always
ports:
- '5433:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./postgresql:/var/lib/postgresql
solr:
image: 'solr:7.6-alpine'
container_name: 'solr'
restart: always
volumes:
- './docker/solr:/opt/solr/server/solr/tester'
ports:
- '8983:8983'
# redis:
# image: 'redis:alpine'
# container_name: 'redis'
app:
# TODO: Mount secrets
build: .
image: laurielias/ajapaik-web:python-3.8.10
container_name: ajapaik
entrypoint: /usr/local/bin/docker-entrypoint-dev.sh
# entrypoint: tail -f /dev/null
ports:
- '8000:8000'
depends_on:
- db
- solr
# - redis
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./:/home/docker/ajapaik
# TODO: figure out how to mount local.py and client_secrets.json, maybe have env variables in local.py and
# do a sed replace on client_secrets?