feat: postgresql exo
This commit is contained in:
parent
8586a6583e
commit
b576a5d4fd
|
|
@ -1,10 +1,10 @@
|
||||||
services:
|
services:
|
||||||
caddy:
|
caddy:
|
||||||
container_name: caddy
|
container_name: caddy
|
||||||
image: caddy:2.10.2-alpine
|
image: library/caddy
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "80:80"
|
||||||
#- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- caddy-caddyfiles:/etc/caddy
|
- caddy-caddyfiles:/etc/caddy
|
||||||
- caddy-data:/data
|
- caddy-data:/data
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ RUN apk update && \
|
||||||
|
|
||||||
EXPOSE 5335/udp 5335/tcp
|
EXPOSE 5335/udp 5335/tcp
|
||||||
|
|
||||||
CMD unbound && tail -f
|
CMD unbound -d -v
|
||||||
16
core/postgresql/compose.yml
Normal file
16
core/postgresql/compose.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: library/postgres
|
||||||
|
container_name: postgres
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: bapasqui
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
PGPORT: 3212
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
name: proxy
|
||||||
|
external: true
|
||||||
7
startup
Normal file → Executable file
7
startup
Normal file → Executable file
|
|
@ -3,7 +3,6 @@
|
||||||
case "$1" in
|
case "$1" in
|
||||||
vm)
|
vm)
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-nographic -serial mon:stdio \
|
|
||||||
-enable-kvm -cpu host -smp 4 -m 4G \
|
-enable-kvm -cpu host -smp 4 -m 4G \
|
||||||
-device e1000,netdev=net0 \
|
-device e1000,netdev=net0 \
|
||||||
-netdev user,id=net0,hostfwd=tcp::2222-:22 \
|
-netdev user,id=net0,hostfwd=tcp::2222-:22 \
|
||||||
|
|
@ -20,9 +19,9 @@ case "$1" in
|
||||||
just start caddy
|
just start caddy
|
||||||
just start doh
|
just start doh
|
||||||
;;
|
;;
|
||||||
stop)
|
clean)
|
||||||
just stop caddy
|
just clean caddy
|
||||||
just stop doh
|
just clean doh
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
just re caddy
|
just re caddy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue