Skip to content

Commit beb68a1

Browse files
committed
added
1 parent 529902c commit beb68a1

5 files changed

Lines changed: 73 additions & 23 deletions

File tree

dnsmasq/.env.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

dnsmasq/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM alpine:edge
2+
3+
RUN apk update \
4+
&& apk --no-cache add dnsmasq bash
5+
6+
RUN mkdir -p /etc/default/
7+
RUN echo -e "ENABLED=1\nIGNORE_RESOLVCONF=yes" > /etc/default/dnsmasq
8+
9+
ENTRYPOINT ["dnsmasq","--no-daemon"]

dnsmasq/docker-compose.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,14 @@
11
services:
22
dnsmasq:
33
restart: unless-stopped
4-
image: jpillora/dnsmasq
4+
build: .
55
container_name: dnsmasq
6+
hostname: dnsmasq
67
network_mode: host
7-
# networks:
8-
# dnsmasq:
9-
# ipv4_address: "${IPV4_ADDRESS}"
10-
# proxy:
118
volumes:
129
- ./conf/dnsmasq.conf:/etc/dnsmasq.conf
1310
- ./conf/hosts.d:/etc/hosts.d
1411
# ports:
1512
# - "53:53/udp"
16-
# - "8080:8080"
17-
env_file:
18-
- .env
19-
20-
networks:
21-
dnsmasq:
22-
name: dnsmasq
23-
driver: bridge
24-
ipam:
25-
config:
26-
- subnet: "${IPV4_SUBNET}"
27-
proxy:
28-
external: true
29-
name: nginx-proxy-net
13+
labels:
14+
- "com.centurylinklabs.watchtower.enable=false"

partdb/.env.example

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Put SQLite database in our mapped folder. You can configure some other kind of database here too.
2+
#DATABASE_URL=sqlite:///%kernel.project_dir%/var/db/app.db
3+
#DATABASE_URL=mysql://partdb:SECRET_USER_PASSWORD@database:3306/partdb
4+
DATABASE_URL=postgresql://PARTDB_USER:PARTDB_PASSWORD@postgresql:5432/partdb
5+
BACKUP_DATABASE_URLS=postgresql://PARTDB_USER:PARTDB_PASSWORD@postgresql:5432/partdb
6+
7+
# In docker env logs will be redirected to stderr
8+
APP_ENV=docker
9+
10+
# You can configure Part-DB using environment variables
11+
# Below you can find the most essential ones predefined
12+
# However you can add any other environment configuration you want here
13+
# See .env file for all available options or https://docs.part-db.de/configuration.html
14+
# !!! Do not use quotes around the values, as they will be interpreted as part of the value and this will lead to errors !!!
15+
16+
# The language to use serverwide as default (en, de, ru, etc.)
17+
DEFAULT_LANG=en
18+
# The default timezone to use serverwide (e.g. Europe/Berlin)
19+
DEFAULT_TIMEZONE=America/Los_Angeles
20+
currency that is used inside the DB (and is assumed when no currency is set). This can not be changed later, so be sure to set it the currency used in your country
21+
BASE_CURRENCY=USD
22+
# The name of this installation. This will be shown as title in the browser and in the header of the website
23+
INSTANCE_NAME=Part-DB
24+
25+
# Allow users to download attachments to the server by providing an URL
26+
# This could be a potential security issue, as the user can retrieve any file the server has access to (via internet)
27+
ALLOW_ATTACHMENT_DOWNLOADS=0
28+
# Use gravatars for user avatars, when user has no own avatar defined
29+
USE_GRAVATAR=0
30+
31+
# Override value if you want to show a given text on homepage.
32+
# When this is empty the content of config/banner.md is used as banner
33+
BANNER=<a href='https://pdxhackerspace.org'>PDX Hackerspace Part DB</a>
34+
35+
# If you use a reverse proxy in front of Part-DB, you must configure the trusted proxies IP addresses here (see reverse proxy documentation for more information):
36+
# TRUSTED_PROXIES=127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

partdb/docker-compose.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
services:
2+
partdb:
3+
image: jbtronics/part-db1:latest
4+
container_name: partdb
5+
hostname: partdb
6+
restart: unless-stopped
7+
ports:
8+
- '28080:80'
9+
networks:
10+
- proxy
11+
- database
12+
volumes:
13+
- ../../lib/partdb//uploads:/var/www/html/uploads
14+
- ../../lib/partdb/public_media:/var/www/html/public/media
15+
- ../../lib/partdb//db:/var/www/html/var/db
16+
env_file:
17+
- .env
18+
networks:
19+
proxy:
20+
name: nginx-proxy-net
21+
external: true
22+
database:
23+
name: postgres-net
24+
external: true

0 commit comments

Comments
 (0)