|
@@ -1,24 +1,82 @@
|
|
|
---
|
|
|
-x-podman:
|
|
|
- in_pod: false
|
|
|
-
|
|
|
services:
|
|
|
- web:
|
|
|
+ clip:
|
|
|
+ image: docker.io/lovasoa/sqlpage:latest
|
|
|
+ hostname: clip
|
|
|
+ user: root
|
|
|
+ volumes:
|
|
|
+ - /etc/timezone:/etc/timezone:ro
|
|
|
+ - /etc/localtime:/etc/localtime:ro
|
|
|
+ - ./site/clip:/var/www
|
|
|
+ - ./site/shared:/var/www/sqlpage
|
|
|
+ - ./config/migrations:/etc/sqlpage/migrations
|
|
|
+ - ./config/templates:/etc/sqlpage/templates
|
|
|
+ - ./config/clip.json:/etc/sqlpage/sqlpage.json
|
|
|
+ - ./data/clip.db:/var/sqlpage/clip.db
|
|
|
+ expose:
|
|
|
+ - 8080
|
|
|
+ networks:
|
|
|
+ - priv
|
|
|
+ restart: unless-stopped
|
|
|
+
|
|
|
+ goto:
|
|
|
+ image: docker.io/lovasoa/sqlpage:latest
|
|
|
+ hostname: goto
|
|
|
+ user: root
|
|
|
+ volumes:
|
|
|
+ - /etc/timezone:/etc/timezone:ro
|
|
|
+ - /etc/localtime:/etc/localtime:ro
|
|
|
+ - ./site/goto:/var/www
|
|
|
+ - ./site/shared:/var/www/sqlpage
|
|
|
+ - ./config/migrations:/etc/sqlpage/migrations
|
|
|
+ - ./config/templates:/etc/sqlpage/templates
|
|
|
+ - ./config/goto.json:/etc/sqlpage/sqlpage.json
|
|
|
+ - ./data/goto.db:/var/sqlpage/goto.db
|
|
|
+ expose:
|
|
|
+ - 8080
|
|
|
+ networks:
|
|
|
+ - priv
|
|
|
+ restart: unless-stopped
|
|
|
+
|
|
|
+ upload:
|
|
|
+ image: docker.io/lovasoa/sqlpage:latest
|
|
|
+ hostname: upload
|
|
|
+ user: root
|
|
|
+ volumes:
|
|
|
+ - /etc/timezone:/etc/timezone:ro
|
|
|
+ - /etc/localtime:/etc/localtime:ro
|
|
|
+ - ./site/upload:/var/www
|
|
|
+ - ./site/shared:/var/www/sqlpage
|
|
|
+ - ./config/migrations:/etc/sqlpage/migrations
|
|
|
+ - ./config/templates:/etc/sqlpage/templates
|
|
|
+ - ./config/upload.json:/etc/sqlpage/sqlpage.json
|
|
|
+ - ./data/upload.db:/var/sqlpage/upload.db
|
|
|
+ expose:
|
|
|
+ - 8080
|
|
|
+ networks:
|
|
|
+ - priv
|
|
|
+ restart: unless-stopped
|
|
|
+
|
|
|
+ code:
|
|
|
image: docker.io/lovasoa/sqlpage:latest
|
|
|
- hostname: util-web
|
|
|
- user: "1000:1000"
|
|
|
- userns_mode: "keep-id:uid=1000,gid=1000"
|
|
|
+ hostname: code
|
|
|
+ user: root
|
|
|
volumes:
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
- - ./util-sqlpage/:/var/www/
|
|
|
- - ./util-sqlpage/sqlpage:/etc/sqlpage:ro
|
|
|
+ - ./site/code:/var/www
|
|
|
+ - ./site/shared:/var/www/sqlpage
|
|
|
+ - ./config/migrations:/etc/sqlpage/migrations
|
|
|
+ - ./config/templates:/etc/sqlpage/templates
|
|
|
+ - ./config/code.json:/etc/sqlpage/sqlpage.json
|
|
|
+ - ./data/code.db:/var/sqlpage/code.db
|
|
|
expose:
|
|
|
- 8080
|
|
|
networks:
|
|
|
- priv
|
|
|
restart: unless-stopped
|
|
|
|
|
|
+
|
|
|
proxy:
|
|
|
image: util-pyapi
|
|
|
hostname: util-proxy
|
|
@@ -26,7 +84,7 @@ services:
|
|
|
context: .
|
|
|
dockerfile: rest/Dockerfile
|
|
|
volumes:
|
|
|
- - ./util-sqlpage/util.db:/usr/src/app/util.db:ro
|
|
|
+ - ./data/upload.db:/usr/src/app/util.db:ro
|
|
|
expose:
|
|
|
- 6772
|
|
|
networks:
|
|
@@ -38,4 +96,4 @@ networks:
|
|
|
enable_ipv6: true
|
|
|
ipam:
|
|
|
config:
|
|
|
- - subnet: fd00:0005::/64
|
|
|
+ - subnet: fd00:0010::/64
|