Dockerfile
This commit is contained in:
11
compose.yaml
11
compose.yaml
@@ -12,9 +12,9 @@ services:
|
|||||||
image: lucaslorentz/caddy-docker-proxy:2.10
|
image: lucaslorentz/caddy-docker-proxy:2.10
|
||||||
restart: "no"
|
restart: "no"
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- "8000:8000"
|
||||||
- 443:443/tcp
|
- "8443:8443/tcp"
|
||||||
- 443:443/udp
|
- "8443:8443/udp"
|
||||||
- "2019:2019"
|
- "2019:2019"
|
||||||
networks:
|
networks:
|
||||||
- caddy_net
|
- caddy_net
|
||||||
@@ -22,7 +22,8 @@ services:
|
|||||||
CADDY_INGRESS_NETWORKS: ${COMPOSE_PROJECT_NAME}_caddy_net
|
CADDY_INGRESS_NETWORKS: ${COMPOSE_PROJECT_NAME}_caddy_net
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/usr/share/caddy
|
- ./data:/usr/share/caddy
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
#- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- /run/user/1000/podman/podman.sock:/var/run/docker.sock:Z
|
||||||
labels:
|
labels:
|
||||||
caddy_admin: "on"
|
caddy_admin: "on"
|
||||||
|
|
||||||
@@ -289,7 +290,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
command: postgrest
|
command: postgrest
|
||||||
environment:
|
environment:
|
||||||
PGRST_DB_URI: postgres://${POSTGREST_USER:-postgrest}:9012@${POSTGREST_HOST:-database}:${POSTGREST_DB_PORT:-5432}/${COMPOSE_PROJECT_NAME}
|
PGRST_DB_URI: postgres://${POSTGREST_USER:-postgrest}:${POSTGREST_PASSWORD}@${POSTGREST_HOST:-database}:${POSTGREST_DB_PORT:-5432}/${COMPOSE_PROJECT_NAME}
|
||||||
PGRST_DB_SCHEMAS: ${POSTGREST_DB_SCHEMAS:-public}
|
PGRST_DB_SCHEMAS: ${POSTGREST_DB_SCHEMAS:-public}
|
||||||
PGRST_DB_ANON_ROLE: ${POSTGREST_DB_ANON_ROLE:-role_web}
|
PGRST_DB_ANON_ROLE: ${POSTGREST_DB_ANON_ROLE:-role_web}
|
||||||
PGRST_JWT_SECRET: ${POSTGREST_JWT_SECRET:-ChangeMeChangeMeChangeMeChangeMe}
|
PGRST_JWT_SECRET: ${POSTGREST_JWT_SECRET:-ChangeMeChangeMeChangeMeChangeMe}
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ RUN npm install -g postgraphile &&\
|
|||||||
npm install -g postgraphile-plugin-connection-filter-postgis &&\
|
npm install -g postgraphile-plugin-connection-filter-postgis &&\
|
||||||
npm install -g postgraphile-plugin-fulltext-filter
|
npm install -g postgraphile-plugin-fulltext-filter
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 80
|
||||||
ENTRYPOINT ["postgraphile", "-n", "0.0.0.0", "--cors"]
|
ENTRYPOINT ["postgraphile", "--host", "0.0.0.0", "--port", "80", "--cors"]
|
||||||
@@ -8,9 +8,9 @@ RUN set -eux; \
|
|||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
cmake \
|
|
||||||
checkinstall \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
checkinstall \
|
||||||
|
cmake \
|
||||||
;
|
;
|
||||||
|
|
||||||
FROM build-essential AS build-pgdev
|
FROM build-essential AS build-pgdev
|
||||||
@@ -119,10 +119,9 @@ RUN set -eux; \
|
|||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
locales; \
|
locales; \
|
||||||
|
apt-get clean; \
|
||||||
sed -i '/fr_FR.UTF-8/s/^# //' /etc/locale.gen; \
|
sed -i '/fr_FR.UTF-8/s/^# //' /etc/locale.gen; \
|
||||||
locale-gen
|
locale-gen; \
|
||||||
|
|
||||||
RUN localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8
|
|
||||||
|
|
||||||
ENV TZ=Europe/Paris
|
ENV TZ=Europe/Paris
|
||||||
ENV LANG=fr_FR.UTF-8
|
ENV LANG=fr_FR.UTF-8
|
||||||
Reference in New Issue
Block a user