Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 3328f5c

Browse files
committed
Enable api server in docker stack
1 parent b77d4a1 commit 3328f5c

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

docker-compose.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,27 @@ secrets:
2121

2222

2323
services:
24-
# server:
25-
# build: .
26-
# image: geokretyapi_server:latest
27-
# volumes:
28-
# - ./:/src/
29-
# configs:
30-
# - source: env-config
31-
# target: /src/.env
32-
# deploy:
33-
# labels:
34-
# traefik.frontend.rule: Host:api.geokrety.house.kumy.net
35-
# traefik.port: "5000"
36-
# networks:
37-
# - traefik_default
38-
# - default
39-
# environment:
40-
# - APP_CONFIG=config.ProductionConfig
41-
# command: gunicorn -w 4 -b 0.0.0.0:5000 --reload app:app --access-logfile=- --error-logfile=-
24+
api:
25+
build: .
26+
image: geokrety_api:latest
27+
volumes:
28+
- ./:/src/
29+
configs:
30+
- source: env-config
31+
target: /src/.env
32+
deploy:
33+
labels:
34+
- "traefik.enable=true"
35+
- "traefik.frontend.rule=Host:api.geokrety.house.kumy.net"
36+
- "traefik.docker.network=traefik_default"
37+
- "traefik.frontend.passHostHeader=true"
38+
- "traefik.port=5000"
39+
networks:
40+
- traefik_default
41+
- default
42+
environment:
43+
- APP_CONFIG=config.ProductionConfig
44+
command: gunicorn -w 4 -b 0.0.0.0:5000 --reload app:current_app --access-logfile=- --error-logfile=-
4245

4346
minio:
4447
image: minio/minio
@@ -80,7 +83,6 @@ services:
8083
# RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: '-rabbitmq_management path_prefix "/rabbit"'
8184

8285
connector:
83-
# image: templum/rabbitmq-connector:feature_refactor
8486
image: templum/rabbitmq-connector:0.1.0
8587
environment:
8688
RMQ_TOPICS: "geokrety.geokret.insert,geokrety.geokret.update"

0 commit comments

Comments
 (0)