Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
146 lines (144 sloc) 3.01 KB
version: '3'
services:
caddy:
image: abiosoft/caddy
restart: always
env_file: .env
networks:
- front
links:
- client
- api
- images
volumes:
- ./.caddy:/root/.caddy
- ./Caddyfile:/etc/Caddyfile
- caddy-logs:/var/log/caddy
- goaccess-html:/www/goaccess
- ./caddy-srv/:/srv
ports:
- 80:80
- 443:443
- 7890:7890
command: --agree --conf "/etc/Caddyfile"
client:
image: ammobindotca/ammobin-client
restart: always
networks:
- front
deploy:
resources:
limits:
memory: 450M
depends_on:
- api
- redis
- fluent
environment:
- DONT_USE_INFLUX=true
api:
env_file: .env
image: ammobindotca/ammobin-api
restart: always
networks:
- front
- back
deploy:
resources:
limits:
memory: 500M
links:
- redis
- fluent
depends_on:
- redis
- fluent
environment:
- DONT_USE_INFLUX=true
worker:
env_file: .env
image: ammobindotca/ammobin-worker
restart: always
networks:
- back
links:
- redis
- fluent
depends_on:
- redis
- fluent
environment:
- DONT_USE_INFLUX=true
refresher:
env_file: .env
image: ammobindotca/ammobin-api
restart: always
command: npm run start:refresher
healthcheck:
disable: true
networks:
- back
links:
- redis
- fluent
depends_on:
- redis
- fluent
redis:
image: redis:3.0-alpine
restart: always
command: redis-server /usr/local/etc/redis/redis.conf
networks:
- back
deploy:
resources:
limits:
memory: 200M
volumes:
- ./redis-data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
images:
image: willnorris/imageproxy:latest
restart: always
networks:
- front
deploy:
resources:
limits:
memory: 150M
entrypoint: /app/imageproxy -cache /tmp/imageproxy -addr 0.0.0.0:8080 -referrers ammobin.ca
goaccess:
image: allinurl/goaccess
networks:
- front
volumes:
- ./goaccess.conf:/srv/data/goaccess.conf
- goaccess-html:/srv/report
- caddy-logs:/srv/logs
entrypoint: goaccess --no-global-config --config-file=/srv/data/goaccess.conf --ws-url=wss://stats.ammobin.ca --output=/srv/report/index.html --log-file=/srv/logs/ammobin.log --real-time-html
rendertron:
image: ammobindotca/rendertron
restart: always
networks:
- back
fluent:
image: ammobindotca/ammobin-elasticsearch-fluentd
restart: always
env_file: .env
networks:
- back
volumes:
- ./fluentd.conf:/fluentd/etc/fluent.conf
- caddy-logs:/var/log
- fluent-buffer:/fluentd/log/
environment:
- FLUENTD_CONF=fluent.conf
networks:
back:
front:
volumes:
fluent-buffer:
caddy-logs:
goaccess-data:
goaccess-html:
caddy-srv:
You can’t perform that action at this time.