-
-
Save gmorell/6e78cd71b1e72c5ddaac2924db408627 to your computer and use it in GitHub Desktop.
peeringdb podman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls ~/.config/containers/systemd/ | |
peer-es.container peer-mysql.container peer-pdb.container peer.pod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=An elasticsearch | |
[Container] | |
Image=docker.elastic.co/elasticsearch/elasticsearch:7.6.1 | |
Environment=discovery.type=single-node | |
# PublishPort=0.0.0.0:19200:9200 | |
Pod=peer.pod | |
[Install] | |
WantedBy=multi-user.target default.target | |
[Service] | |
Restart=always | |
TimeoutStartSec=900 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=A MYSQL instance for peeringdb | |
[Container] | |
Image=docker.io/mysql:8 | |
# PublishPort=0.0.0.0:23306:3306 | |
Environment=MYSQL_DATABASE=peeringdb | |
Environment=MYSQL_USER=peeringdb | |
Environment=MYSQL_PASSWORD=devPASSWORD | |
Environment=MYSQL_ALLOW_EMPTY_PASSWORD=1 | |
# Volume=/path/to/where/you/want/to/store/mysql:/var/lib/mysql | |
Pod=peer.pod | |
[Install] | |
WantedBy=multi-user.target default.target | |
[Service] | |
Restart=always | |
TimeoutStartSec=900 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=A peeringdb | |
[Container] | |
User=0:0 | |
Image=ghcr.io/peeringdb/peeringdb-server:latest | |
Exec="runserver 0.0.0.0:8000" | |
# EnvironmentFile=/path/to/that/env/file | |
Environment=DATABASE_USER=peeringdb | |
Environment=DATABASE_PASSWORD=devPASSWORD | |
Environment=DATABASE_HOST=localhost | |
Environment=DATABASE_PORT=3306 | |
# PublishPort=0.0.0.0:8000:8000 | |
Pod=peer.pod | |
[Install] | |
WantedBy=multi-user.target default.target | |
[Service] | |
Restart=always | |
TimeoutStartSec=900 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment