Updated post to address network namespace bug

This commit is contained in:
Brandon Rozek 2022-04-05 10:59:11 -04:00
parent eb301db693
commit 715c4fce26

View file

@ -14,8 +14,8 @@ To compensate, I wrote a small systemd script and enabled it on startup.
```ini ```ini
[Unit] [Unit]
Description=Docker Compose Application Service Description=Docker Compose Application Service
Requires=docker.service Requires=network.target docker.service
After=docker.service After=network.target docker.service
[Service] [Service]
Type=oneshot Type=oneshot
@ -23,7 +23,7 @@ User=brandonrozek
Group=brandonrozek Group=brandonrozek
RemainAfterExit=yes RemainAfterExit=yes
WorkingDirectory=/home/brandonrozek/docker/ WorkingDirectory=/home/brandonrozek/docker/
ExecStart=/usr/bin/docker-compose up -d ExecStart=/usr/bin/docker-compose up -d --force-recreate
ExecStop=/usr/bin/docker-compose down ExecStop=/usr/bin/docker-compose down
TimeoutStartSec=0 TimeoutStartSec=0