Skip to content

Commit 7a69808

Browse files
committed
docker swarm compose file for local infra
1 parent 4a3c3a5 commit 7a69808

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docker-compose.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: "3.7"
2+
services:
3+
pixel_watcher:
4+
image: registry.generalprogramming.org/placedump:latest
5+
build: .
6+
env_file: .env
7+
networks:
8+
- internal
9+
logging:
10+
driver: loki
11+
options:
12+
loki-url: "http://loki.service.fmt2.consul:3100/loki/api/v1/push"
13+
restart: always
14+
deploy:
15+
mode: global
16+
restart_policy:
17+
condition: on-failure
18+
command: "python pixel_watcher.py"
19+
celery:
20+
image: registry.generalprogramming.org/placedump:latest
21+
build: .
22+
env_file: .env
23+
networks:
24+
- internal
25+
logging:
26+
driver: loki
27+
options:
28+
loki-url: "http://loki.service.fmt2.consul:3100/loki/api/v1/push"
29+
restart: always
30+
deploy:
31+
restart_policy:
32+
condition: on-failure
33+
replicas: 4
34+
command: "celery -A placedump.tasks worker -l INFO --autoscale 24,2"
35+
networks:
36+
publicweb:
37+
driver: overlay
38+
external: true
39+
internal:

0 commit comments

Comments
 (0)