mirror of
https://github.com/JonasunderscoreJones/jonas_jones-api.git
synced 2025-10-22 16:59:17 +02:00
Added docker-compose file
This commit is contained in:
parent
4ecbd7aa98
commit
1cdb34503d
1 changed files with 11 additions and 0 deletions
11
docker-compose.yaml
Normal file
11
docker-compose.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
version: '3.8'
|
||||||
|
services:
|
||||||
|
arch-linux:
|
||||||
|
image: archlinux:latest
|
||||||
|
container_name: jonas_jones-api
|
||||||
|
ports:
|
||||||
|
- "3030:3030"
|
||||||
|
volumes:
|
||||||
|
- /home/jonas_jones/jonas_jones-api:/home/jonas_jones/jonas_jones-api
|
||||||
|
- /home/jonas_jones/.config/rclone/:/root/.config/rclone/
|
||||||
|
command: ["sh", "-c", "pacman -Syu --noconfirm --needed pkg-config openssl python3 python-pip rclone cargo && python3 -m venv api-venv && source api-venv/bin/activate && cd /home/jonas_jones/jonas_jones-api && pip install -r requirements.txt && /usr/bin/cargo run"]
|
Loading…
Add table
Add a link
Reference in a new issue