mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
feat: use volume mounting to set initial servers
This commit is contained in:
parent
9ff3a830d9
commit
99bd0a8689
4 changed files with 6 additions and 27 deletions
|
@ -22,9 +22,7 @@ services:
|
|||
- ./migrations/before:/docker-entrypoint-initdb.d
|
||||
|
||||
pgadmin:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/pgadmin.Dockerfile
|
||||
image: dpage/pgadmin4
|
||||
depends_on:
|
||||
- postgres
|
||||
environment:
|
||||
|
@ -32,6 +30,8 @@ services:
|
|||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||
ports:
|
||||
- 5400:80
|
||||
volumes:
|
||||
- ./docker/pgadmin/servers.json:/pgadmin4/servers.json
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
|
|
|
@ -36,9 +36,7 @@ services:
|
|||
- ./migrations/before:/docker-entrypoint-initdb.d
|
||||
|
||||
pgadmin:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/pgadmin.Dockerfile
|
||||
image: dpage/pgadmin4
|
||||
depends_on:
|
||||
- postgres
|
||||
environment:
|
||||
|
@ -46,6 +44,8 @@ services:
|
|||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||
ports:
|
||||
- 5400:80
|
||||
volumes:
|
||||
- ./docker/pgadmin/servers.json:/pgadmin4/servers.json
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
FROM dpage/pgadmin4
|
||||
|
||||
COPY ./docker/pgadmin/servers.json /pgadmin4/servers.json
|
||||
COPY ./docker/pgadmin/custom_entrypoint.sh /custom_entrypoint.sh
|
||||
|
||||
USER root
|
||||
RUN chmod +x /custom_entrypoint.sh
|
||||
|
||||
USER pgadmin
|
||||
|
||||
ENTRYPOINT ["/custom_entrypoint.sh"]
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Call the original entrypoint
|
||||
/entrypoint.sh "$@"
|
||||
|
||||
# Your additional commands to invoke setup.py (example below, adjust accordingly)
|
||||
python setup.py --load-servers /path/to/your/servers.json
|
||||
|
||||
# Keep container running
|
||||
tail -f /dev/null
|
Loading…
Add table
Reference in a new issue