This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Yotter/docker-compose.yml

53 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2020-10-31 15:00:32 +05:30
version: "3.8"
services:
mariadb:
2020-09-09 11:55:52 +05:30
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: yotter
MYSQL_USER: yotter
MYSQL_PASSWORD: changeme
2020-09-09 11:55:52 +05:30
restart: unless-stopped
volumes:
2020-10-31 15:00:32 +05:30
- mysql:/var/lib/mysql
healthcheck:
2020-10-31 15:00:32 +05:30
test: ["CMD", "mysqladmin", "ping", "--silent"]
2021-04-04 20:08:16 +05:30
nginx:
2021-04-12 05:50:45 +05:30
image: ytorg/nginx:latest
2021-04-04 20:08:16 +05:30
restart: unless-stopped
environment:
HOSTNAME: 'changeme.example.com'
HTTP_PORT: 8080
YOTTER_ADDRESS: 'http://yotter:5000'
YTPROXY_ADDRESS: 'http://unix:/var/run/ytproxy/http-proxy.sock'
ports:
- "127.0.0.1:8080:8080"
volumes:
- "/var/run/ytproxy:/app/socket/"
2020-10-31 15:00:32 +05:30
ytproxy:
image: 1337kavin/ytproxy:latest
restart: unless-stopped
volumes:
- "/var/run/ytproxy:/app/socket/"
network_mode: host
yotter:
image: ytorg/yotter:latest
restart: unless-stopped
ports:
- "127.0.0.1:5000:5000"
environment:
DATABASE_URL: mysql+pymysql://yotter:changeme@mariadb:3306/yotter
depends_on:
- mariadb
2020-10-31 15:00:32 +05:30
- ytproxy
volumes:
2020-10-31 15:00:32 +05:30
- migrations:/usr/src/app/migrations
- ./yotter-config.json:/usr/src/app/yotter-config.json
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:5000"]
interval: 1m
timeout: 3s
2020-09-12 16:48:42 +05:30
volumes:
mysql:
migrations: