-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.template
45 lines (45 loc) · 1.08 KB
/
docker-compose.yml.template
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
version: '3.8'
networks:
ai_net:
name: ai
ipam:
config:
- subnet: 192.168.30.0/16
services:
train_web:
image: umputun/nginx-le:latest
hostname: train_web
restart: unless-stopped
container_name: train_web
volumes:
- ./config/websrv.conf:/etc/nginx/service.conf
- ./ssl:/etc/nginx/ssl
ports:
- "80:80"
- "443:443"
environment:
- TZ=Europe
- LETSENCRYPT=true
- LE_EMAIL=CERT_EMAIL
- LE_FQDN=PUBLIC_URL
- SSL_CERT=le-crt.pem
- SSL_KEY=le-key.pem
- SSL_CHAIN_CERT=le-chain-crt.pem
networks:
ai_net:
ipv4_address: 192.168.30.1
train_bot:
image: mcr.microsoft.com/dotnet/sdk:7.0
working_dir: /app
hostname: train_bot
restart: unless-stopped
container_name: train_bot
command: bash -c "dotnet /app/TrainBot.dll"
volumes:
- ./TrainBot/bin/release/net7.0/publish:/app
- ./data:/app/data
ports:
- "8080:8080"
networks:
ai_net:
ipv4_address: 192.168.30.2