mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-08 13:55:21 +02:00
docker: set single container as new default
This commit is contained in:
@@ -23,3 +23,5 @@ WEB_CONCURRENCY=4
|
|||||||
ENABLE_SOFT_DELETE=false
|
ENABLE_SOFT_DELETE=false
|
||||||
# If ENABLE_SOFT_DELETE is true, transactions deleted for more than KEEP_DELETED_TRANSACTIONS_FOR days will be truly deleted. Set to 0 to keep all.
|
# If ENABLE_SOFT_DELETE is true, transactions deleted for more than KEEP_DELETED_TRANSACTIONS_FOR days will be truly deleted. Set to 0 to keep all.
|
||||||
KEEP_DELETED_TRANSACTIONS_FOR=365
|
KEEP_DELETED_TRANSACTIONS_FOR=365
|
||||||
|
|
||||||
|
TASK_WORKERS=1 # This only work if you're using the single container option. Increase to have more open queues via procrastinate, you probably don't need to increase this.
|
||||||
|
|||||||
+1
-18
@@ -2,15 +2,13 @@ services:
|
|||||||
web:
|
web:
|
||||||
image: eitchtee/wygiwyh:latest
|
image: eitchtee/wygiwyh:latest
|
||||||
container_name: ${SERVER_NAME}
|
container_name: ${SERVER_NAME}
|
||||||
command: /start
|
command: /start-single
|
||||||
ports:
|
ports:
|
||||||
- "${OUTBOUND_PORT}:8000"
|
- "${OUTBOUND_PORT}:8000"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
|
||||||
- wygiwyh_temp:/usr/src/app/temp/
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
db:
|
db:
|
||||||
@@ -23,18 +21,3 @@ services:
|
|||||||
- POSTGRES_USER=${SQL_USER}
|
- POSTGRES_USER=${SQL_USER}
|
||||||
- POSTGRES_PASSWORD=${SQL_PASSWORD}
|
- POSTGRES_PASSWORD=${SQL_PASSWORD}
|
||||||
- POSTGRES_DB=${SQL_DATABASE}
|
- POSTGRES_DB=${SQL_DATABASE}
|
||||||
|
|
||||||
procrastinate:
|
|
||||||
image: eitchtee/wygiwyh:latest
|
|
||||||
container_name: ${PROCRASTINATE_NAME}
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
volumes:
|
|
||||||
- wygiwyh_temp:/usr/src/app/temp/
|
|
||||||
command: /start-procrastinate
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
wygiwyh_temp:
|
|
||||||
|
|||||||
@@ -41,12 +41,12 @@ COPY --chown=app:app ./docker/prod/django/start /start
|
|||||||
COPY --chown=app:app ./docker/prod/procrastinate/start /start-procrastinate
|
COPY --chown=app:app ./docker/prod/procrastinate/start /start-procrastinate
|
||||||
COPY --chown=app:app ./docker/prod/supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY --chown=app:app ./docker/prod/supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
COPY --chown=app:app ./docker/prod/supervisord/supervisord.conf /etc/supervisord.conf
|
COPY --chown=app:app ./docker/prod/supervisord/supervisord.conf /etc/supervisord.conf
|
||||||
COPY --chown=app:app ./docker/prod/supervisord/start /start-supervisor
|
COPY --chown=app:app ./docker/prod/supervisord/start /start-single
|
||||||
RUN sed -i 's/\r$//g' /start && \
|
RUN sed -i 's/\r$//g' /start && \
|
||||||
chmod +x /start && \
|
chmod +x /start && \
|
||||||
sed -i 's/\r$//g' /start-procrastinate && \
|
sed -i 's/\r$//g' /start-procrastinate && \
|
||||||
chmod +x /start-procrastinate && \
|
chmod +x /start-procrastinate && \
|
||||||
sed -i 's/\r$//g' /start-supervisor && \
|
sed -i 's/\r$//g' /start-single && \
|
||||||
chmod +x /start-supervisor
|
chmod +x /start-supervisor
|
||||||
|
|
||||||
COPY --chown=app:app ./app .
|
COPY --chown=app:app ./app .
|
||||||
|
|||||||
Reference in New Issue
Block a user