Skip to content

Commit 2718a12

Browse files
authored
Merge pull request #210 from ComputerScienceHouse/cole-dev
feat: docker-compose, small fixes
2 parents 3800764 + 9473b5a commit 2718a12

File tree

4 files changed

+52
-4
lines changed

4 files changed

+52
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-buster
1+
FROM python:3.9-trixie
22
WORKDIR /opt/proxstar
33
RUN apt-get update -y && apt-get install -y python3-dev libldap2-dev libsasl2-dev ldap-utils git
44
COPY requirements.txt .

HACKING/.env.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ PROXSTAR_REDIS_HOST=proxstar-redis
4848
PROXSTAR_REDIS_PORT=6379
4949

5050
# VNC
51-
PROXSTAR_WEBSOCKIFY_PATH=/opt/app-root/bin/websockify
52-
PROXSTAR_WEBSOCKIFY_TARGET_FILE=/opt/app-root/src/targets
51+
PROXSTAR_WEBSOCKIFY_PATH=/usr/local/bin/websockify
52+
PROXSTAR_WEBSOCKIFY_TARGET_FILE=/opt/proxstar/targets
5353

5454
# SENTRY
5555
# If you set the sentry dsn locally, make sure you use the local-dev or some

HACKING/docker-compose.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
services:
2+
proxstar-redis:
3+
image: docker.io/library/redis:alpine
4+
networks:
5+
- proxstar
6+
restart: always
7+
8+
proxstar-postgres:
9+
build:
10+
context: ./proxstar-postgres
11+
environment:
12+
POSTGRES_PASSWORD: changeme
13+
volumes:
14+
- ./proxstar-postgres/volume:/var/lib/postgresql/data:Z
15+
networks:
16+
- proxstar
17+
restart: always
18+
19+
proxstar-rq-scheduler:
20+
build:
21+
context: ..
22+
env_file: .env
23+
entrypoint: ./start_scheduler.sh
24+
networks:
25+
- proxstar
26+
restart: always
27+
28+
proxstar-rq:
29+
build:
30+
context: ..
31+
env_file: .env
32+
entrypoint: ./start_worker.sh
33+
networks:
34+
- proxstar
35+
restart: always
36+
37+
proxstar:
38+
build:
39+
context: ..
40+
ports:
41+
- "8000:8000"
42+
- "8001:8001"
43+
env_file: .env
44+
entrypoint: ["gunicorn", "proxstar:app", "--bind=0.0.0.0:8000"]
45+
networks:
46+
- proxstar
47+
networks:
48+
proxstar:

HACKING/proxstar-postgres/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres:12
1+
FROM docker.io/library/postgres:12
22

33
RUN apt-get update \
44
&& apt-get install -y postgresql-plperl-12 postgresql-plpython3-12 libnet-ip-perl libnet-ldap-perl libnet-dns-perl libnet-snmp-perl libnet-server-mail-perl libcrypt-des-perl build-essential cpanminus curl \

0 commit comments

Comments
 (0)