-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (54 loc) · 1.37 KB
/
docker-compose.yaml
File metadata and controls
57 lines (54 loc) · 1.37 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
# Prod-shaped template — mirrors the live `7cav-api` stack.
#
# Prerequisites for `docker compose up`:
# - A `xenforo` stack is already running (provides `xenforo-db` on
# the `xenforo_internal` network).
# - The external networks exist:
# docker network create edge
# docker network create xenforo_internal
services:
api:
build:
dockerfile: "Dockerfile"
context: "./"
image: 7cav/api:latest
container_name: 7cav-api
labels:
- com.centurylinklabs.watchtower.enable=true
networks:
- edge
- xenforo_internal
restart: always
ports:
- "11000:11000"
- "10000:10000"
environment:
PORT: 10000
DB_USERNAME: xenforo
DB_PASSWORD:
DB_HOST: xenforo-db
DB_PORT: 3306
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD:
# Optional — populates Ticket.forum_url; empty if unset.
# FORUM_BASE_URL: https://7cav.us
# Optional — refresh interval for the in-memory ticket reference cache; defaults to 15m.
# REFERENCE_CACHE_REFRESH_INTERVAL: 15m
depends_on:
- redis
redis:
image: redis:latest
container_name: redis
networks:
- xenforo_internal
restart: always
environment:
REDIS_PASSWORD:
networks:
edge:
external: true
name: edge
xenforo_internal:
external: true
name: xenforo_internal