-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
54 lines (51 loc) · 1.38 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
54 lines (51 loc) · 1.38 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
# Copyright (C) 2024-2026 jango_blockchained
# SPDX-License-Identifier: AGPL-3.0-only
#
# Production overrides for AXIS compose.
#
# docker compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d
# docker compose -f docker-compose.yml -f docker-compose.prod.yml --profile api up -d
#
# Prefers pre-built images when AXIS_IMAGE / PYNE_IMAGE are set (CI bake + pull).
services:
pwa:
image: ${AXIS_IMAGE:-ghcr.io/hoox-sh/axis:pwa-latest}
build:
target: pwa
args:
GIT_SHA: ${GIT_SHA:-unknown}
pull_policy: ${PULL_POLICY:-missing}
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 128M
api:
image: ${PYNE_IMAGE:-ghcr.io/hoox-sh/pynescript:api-latest}
build:
target: api
pull_policy: ${PULL_POLICY:-missing}
environment:
FLASK_ENV: production
FLASK_DEBUG: "0"
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://hoox.sh,https://hoox.sh/axis}
restart: always
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
proxy:
image: ${AXIS_NGINX_IMAGE:-ghcr.io/hoox-sh/axis:pwa-nginx-latest}
pull_policy: ${PULL_POLICY:-missing}
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"