Skip to content

Commit 30ddb94

Browse files
committed
dockerfiles
1 parent 9118fd5 commit 30ddb94

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ RUN apt update && apt install -y wget > /dev/null && rm -rf /var/lib/apt/lists/*
77

88
WORKDIR /proxy_py
99
USER user
10-
# TODO: change to master
11-
ARG VERSION=73850a02909242bcc68f3257a8663ca113128704
10+
ARG VERSION=master
1211

1312
RUN wget https://github.com/DevAlone/proxy_py/archive/$VERSION.tar.gz -O sources.tar.gz 2> /dev/null \
1413
&& tar -xf sources.tar.gz && rm sources.tar.gz \

build_docker.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
if [ $# -eq 0 ]
3+
then
4+
tag='latest'
5+
git checkout master || exit 1
6+
else
7+
tag=$1
8+
git checkout $tag || exit 1
9+
fi
10+
11+
docker build -t DevAlone/proxy_py:$tag .
12+
docker push DevAlone/proxy_py:$tag

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ services:
99
- POSTGRES_PASSWORD=proxy_py
1010
- POSTGRES_DB=proxy_py
1111
volumes:
12-
- pgdata:/home/user/proxy_py_postgres_data
12+
- db_data:/var/lib/postgresql/data
1313
core:
1414
build: .
1515
ports:
1616
- "55555:55555"
1717
environment:
18-
- PROXY_PY_PROXY_PROVIDER_SERVER_ADDRESS="{'HOST':'0.0.0.0','PORT':55555}"
19-
- PROXY_PY_DATABASE_CONNECTION_KWARGS="{'host':'db','database':'proxy_py','user':'proxy_py','password':'proxy_py'}"
18+
- PROXY_PY_PROXY_PROVIDER_SERVER_ADDRESS={'HOST':'0.0.0.0','PORT':55555}
19+
- PROXY_PY_DATABASE_CONNECTION_KWARGS={'host':'db','database':'proxy_py','user':'proxy_py','password':'proxy_py'}
2020
depends_on:
2121
- db
2222

2323
volumes:
24-
pgdata:
24+
db_data:

0 commit comments

Comments
 (0)