forked from openfoodfacts/taxonomy-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.5 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
46
47
48
49
50
51
52
53
version: "3.9"
services:
neo4j:
restart: ${RESTART_POLICY:-no}
image: neo4j:4.4.8-community
ports:
# admin console
- "127.0.0.1:7474:7474"
# db bolt api
- "127.0.0.1:7687:7687"
environment:
# we should not expose it publicly
NEO4J_AUTH: none
volumes:
# put data in a volume
- neo4j-data:/data
# put logs in a subdir
- ./neo4j/logs:/logs
# directory for imports
- ./neo4j/import:/var/lib/neo4j/import
# directory for neo4j imports
command: neo4j
taxonomy_api:
restart: ${RESTART_POLICY:-no}
image: ghcr.io/openfoodfacts/taxonomy-editor/taxonomy_api:${DOCKER_TAG}
environment:
NEO4J_URI: "bolt://neo4j:7687"
# taken from .env
GITHUB_PAT:
REPO_URI:
# make proxy headers be taken into account
FORWARDED_ALLOW_IPS: "*"
taxonomy_frontend:
# this is the nginx frontend serving react static version or redirecting queries
image: ghcr.io/openfoodfacts/taxonomy-editor/taxonomy_frontend:${DOCKER_TAG}
depends_on:
- taxonomy_api
environment:
# enabling prod config and disabling dev one
PROD_UI_SUFFIX: ""
DEV_UI_SUFFIX: "-dev"
TAXONOMY_EDITOR_DOMAIN:
PUBLIC_TAXONOMY_EDITOR_PORT:
API_SCHEME:
volumes:
# Nginx, we use templates dir to be able to use environment vars
- ./conf/nginx.conf:/etc/nginx/templates/default.conf.template
ports:
- ${TAXONOMY_EDITOR_EXPOSE:-127.0.0.1:8091}:80
volumes:
neo4j-data: