diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..359c5d7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ + +* +!src/ +!requirements.txt +!config.exemple.yml + +!./.git/HEAD +!./.git/refs +!./.git/logs/HEAD diff --git a/.gitignore b/.gitignore index 405b31f..69b7d06 100644 --- a/.gitignore +++ b/.gitignore @@ -159,9 +159,11 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -songs/ +songs/* config.yml -logs/ +logs/* git_info.json /test/ -.docker/ \ No newline at end of file +.docker/ + +!.gitkeep \ No newline at end of file diff --git a/docker-compose.pre-prod.yml b/docker-compose.pre-prod.yml new file mode 100644 index 0000000..1bff48e --- /dev/null +++ b/docker-compose.pre-prod.yml @@ -0,0 +1,19 @@ +version: '3.7' + +services: + + pyramid: + image: tristiisch/pyramid:pre-prod + volumes: + - ./config.yml:/app/config.yml + - ./logs:/app/logs + - ./songs:/app/songs + restart: always + networks: + - pyramid_pre_prod_network + container_name : pyramid-pre-prod + hostname: pyramid + +networks: + pyramid_pre_prod_network: + driver: bridge diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml new file mode 100644 index 0000000..769f61a --- /dev/null +++ b/docker-compose.prod.yml @@ -0,0 +1,19 @@ +version: '3.7' + +services: + + pyramid: + image: tristiisch/pyramid:latest + volumes: + - ./config.yml:/app/config.yml + - ./logs:/app/logs + - ./songs:/app/songs + restart: always + networks: + - pyramid_network + container_name : pyramid + hostname: pyramid + +networks: + pyramid_network: + driver: bridge diff --git a/logs/.gitkeep b/logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/songs/.gitkeep b/songs/.gitkeep new file mode 100644 index 0000000..e69de29