Working with centralized config
This commit is contained in:
13
flatcar/app/app.service
Normal file
13
flatcar/app/app.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Main App
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
[Service]
|
||||
TimeoutStartSec=0
|
||||
ExecStart=/usr/bin/docker compose -f /home/core/docker-compose.yaml up
|
||||
ExecStop=/usr/bin/docker compose -f /home/core/docker-compose.yaml stop
|
||||
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
26
flatcar/app/docker-compose.yaml
Normal file
26
flatcar/app/docker-compose.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
services:
|
||||
lb:
|
||||
image: docker.io/caddy:2
|
||||
volumes:
|
||||
- /var/lb/caddy:/etc/caddy
|
||||
networks:
|
||||
- lb
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "443:443"
|
||||
- "80:80"
|
||||
thintz-com:
|
||||
image: docker.io/caddy:2
|
||||
volumes:
|
||||
- /var/thintz-com/caddy:/etc/caddy
|
||||
networks:
|
||||
- lb
|
||||
restart: unless-stopped
|
||||
nginx:
|
||||
image: nginx
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- lb
|
||||
networks:
|
||||
lb:
|
||||
Reference in New Issue
Block a user