-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
73 lines (72 loc) · 1.71 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
api:
image: ghcr.io/aartoni/sixdegreesofapi:main
container_name: api
depends_on:
- db
environment:
- NEO4J_DB_NAME
- NEO4J_PASS_FILE=${NEO4J_AUTH_FILE}
- NEO4J_URI
- NEO4J_USER
- ORIGIN
- RUST_LOG=${API_LOG_LEVEL}
- PORT=${API_PORT}
expose:
- "${API_PORT}"
restart: "unless-stopped"
secrets:
- neo4j_pass
db:
image: neo4j:5.26.0-community-bullseye
container_name: db
environment:
- NEO4J_AUTH_FILE
- NEO4J_initial_dbms_default__database
- NEO4J_server_memory_heap_initial__size
- NEO4J_server_memory_heap_max__size
ports:
- "7474:7474"
- "7687:7687"
restart: "unless-stopped"
secrets:
- neo4j_pass
volumes:
- ./data/neo4j:/data
frontend:
build:
context: ../frontend
dockerfile: Dockerfile
depends_on:
- api
environment:
- PORT=${FRONTEND_PORT}
expose:
- "${FRONTEND_PORT}"
restart: "unless-stopped"
proxy:
image: nginx:1.27-alpine
container_name: proxy
hostname: ${DOMAIN}
depends_on:
- frontend
environment:
- API_DOMAIN
- API_PORT
- DOMAIN
- FRONTEND_PORT
- TZ
ports:
- "80:80"
- "443:443"
restart: "unless-stopped"
volumes:
- './data/certs/fullchain.pem:/config/keys/cert.crt:ro'
- './data/certs/serverkey.pem:/config/keys/cert.key:ro'
- './config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro'
- './config/nginx/snippets:/etc/nginx/snippets:ro'
- './config/nginx/static:/usr/share/nginx/html:ro'
- './config/nginx/templates:/etc/nginx/templates:ro'
secrets:
neo4j_pass:
file: ./secrets/neo4j.txt