-
Notifications
You must be signed in to change notification settings - Fork 0
/
athena.service
26 lines (23 loc) · 1.06 KB
/
athena.service
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
# Service file, save to /etc/systemd/system/athena.service
# To use:
# systemctl start athena # start service
# systemctl enable athena # enable on boot
# systemctl status athena # view status (up or not)
# systemctl stop athena # stop service
# systemctl daemon-reload # reload service file after changes
# in Athena folder: view logs
# docker compose -f docker-compose.prod.yml -f docker-compose.playground.prod.yml -f docker-compose.cofee.yml logs --tail 200 -f
[Unit]
Description=Athena
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
User=user # TODO: change to your user
Group=docker
WorkingDirectory=/home/user/Athena # TODO: change to actual path
EnvironmentFile=/home/user/Athena/.env # TODO: potentially change to actual path
ExecStart=/usr/bin/docker compose -f docker-compose.prod.yml -f docker-compose.playground.prod.yml -f docker-compose.cofee.yml up --pull always -d
ExecStop=/usr/bin/docker compose -f docker-compose.prod.yml -f docker-compose.playground.prod.yml -f docker-compose.cofee.yml stop
[Install]
WantedBy=multi-user.target