Skip to content

Commit

Permalink
add docker compose file for easier testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed May 16, 2023
1 parent 3e429d0 commit 07e1281
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
bitpoll:
build:
dockerfile: Dockerfile
context: .
ports:
- 3008:3008
- 3009:3009
volumes:
- ./run/static:/opt/static
- ./run/config:/opt/config
- ./run/log/:/opt/log
web:
image: nginx:1.23
volumes:
- ./docker_files/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./run/static:/opt/static
ports:
- "80:80"
19 changes: 19 additions & 0 deletions docker_files/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
server {
listen 80;
server_name default_server;

root /opt/static;

location / {
include uwsgi_params;
uwsgi_pass bitpoll:3008;
}

location /static {
expires 14d;
alias /opt/static;
}

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
}

0 comments on commit 07e1281

Please sign in to comment.