2022-11-29 07:20:21 +00:00
|
|
|
version: "2.2"
|
|
|
|
|
2022-07-29 21:22:22 +00:00
|
|
|
services:
|
|
|
|
app:
|
2022-07-29 21:22:22 +00:00
|
|
|
image: pathogen/neptune:latest
|
2022-11-22 21:53:21 +00:00
|
|
|
container_name: neptune
|
2022-11-29 07:20:21 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
2022-07-29 21:22:22 +00:00
|
|
|
volumes:
|
2022-07-29 08:51:19 +00:00
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-11-29 07:20:21 +00:00
|
|
|
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
|
|
|
|
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
|
|
|
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
|
|
|
- neptune_static:${STATIC_ROOT}
|
2022-07-29 08:51:19 +00:00
|
|
|
env_file:
|
2022-11-29 07:20:21 +00:00
|
|
|
- stack.env
|
2022-08-18 06:20:30 +00:00
|
|
|
volumes_from:
|
2022-11-29 07:20:21 +00:00
|
|
|
- tmp
|
2022-08-16 18:43:55 +00:00
|
|
|
depends_on:
|
2022-09-16 17:09:44 +00:00
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
migration:
|
|
|
|
condition: service_started
|
2022-11-29 07:20:21 +00:00
|
|
|
collectstatic:
|
|
|
|
condition: service_started
|
2022-11-22 21:53:21 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- pathogen
|
|
|
|
- elastic
|
2022-08-16 18:43:55 +00:00
|
|
|
|
2023-01-12 07:20:48 +00:00
|
|
|
processing:
|
|
|
|
image: pathogen/neptune:latest
|
|
|
|
container_name: processing_neptune
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
|
|
|
command: sh -c '. /venv/bin/activate && python manage.py processing'
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
|
2023-01-12 07:20:48 +00:00
|
|
|
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
2023-01-12 07:20:48 +00:00
|
|
|
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
|
|
|
- neptune_static:${STATIC_ROOT}
|
|
|
|
env_file:
|
|
|
|
- stack.env
|
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
migration:
|
|
|
|
condition: service_started
|
|
|
|
collectstatic:
|
|
|
|
condition: service_started
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
|
2023-01-14 16:36:22 +00:00
|
|
|
scheduling:
|
|
|
|
image: pathogen/neptune:latest
|
|
|
|
container_name: scheduling_neptune
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
|
|
|
command: sh -c '. /venv/bin/activate && python manage.py scheduling'
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
|
|
|
|
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
|
|
|
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
|
|
|
- neptune_static:${STATIC_ROOT}
|
|
|
|
env_file:
|
|
|
|
- stack.env
|
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
migration:
|
|
|
|
condition: service_started
|
|
|
|
collectstatic:
|
|
|
|
condition: service_started
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- pathogen
|
|
|
|
- elastic
|
|
|
|
|
2022-08-16 18:43:55 +00:00
|
|
|
migration:
|
|
|
|
image: pathogen/neptune:latest
|
2022-11-22 21:53:21 +00:00
|
|
|
container_name: migration_neptune
|
2022-11-29 07:20:21 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
2022-08-16 18:43:55 +00:00
|
|
|
command: sh -c '. /venv/bin/activate && python manage.py migrate --noinput'
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-11-29 07:20:21 +00:00
|
|
|
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
|
|
|
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
|
|
|
- neptune_static:${STATIC_ROOT}
|
2022-09-16 17:09:44 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2022-07-29 21:22:22 +00:00
|
|
|
|
2022-11-29 07:20:21 +00:00
|
|
|
collectstatic:
|
|
|
|
image: pathogen/neptune:latest
|
|
|
|
container_name: collectstatic_neptune
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
|
|
|
command: sh -c '. /venv/bin/activate && python manage.py collectstatic --noinput'
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
|
|
|
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
|
|
|
- neptune_static:${STATIC_ROOT}
|
2023-01-12 07:20:48 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
2022-11-29 07:20:21 +00:00
|
|
|
env_file:
|
|
|
|
- stack.env
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
container_name: nginx_neptune
|
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:9999
|
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
- ${PORTAINER_GIT_DIR}/docker/nginx/conf.d/${OPERATION}.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
- neptune_static:${STATIC_ROOT}
|
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- pathogen
|
|
|
|
depends_on:
|
|
|
|
app:
|
|
|
|
condition: service_started
|
2022-08-02 21:22:22 +00:00
|
|
|
|
2022-08-18 06:20:30 +00:00
|
|
|
tmp:
|
|
|
|
image: busybox
|
2022-11-22 21:53:21 +00:00
|
|
|
container_name: tmp_neptune
|
|
|
|
command: chmod -R 777 /var/run/socks
|
2022-08-18 06:20:30 +00:00
|
|
|
volumes:
|
2022-11-22 21:53:21 +00:00
|
|
|
- /var/run/socks
|
2022-08-18 06:20:30 +00:00
|
|
|
|
|
|
|
redis:
|
2022-09-16 17:09:44 +00:00
|
|
|
image: redis
|
2022-11-22 21:53:21 +00:00
|
|
|
container_name: redis_neptune
|
2022-09-16 17:09:44 +00:00
|
|
|
command: redis-server /etc/redis.conf
|
2022-11-22 21:53:21 +00:00
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
2022-09-16 17:09:44 +00:00
|
|
|
volumes:
|
2023-01-12 07:20:48 +00:00
|
|
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
2022-09-16 17:09:44 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
healthcheck:
|
2022-11-22 21:53:21 +00:00
|
|
|
test: "redis-cli -s /var/run/socks/redis.sock ping"
|
2022-09-16 17:09:44 +00:00
|
|
|
interval: 2s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 15
|
2023-01-12 07:20:48 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- pathogen
|
2022-08-18 06:20:30 +00:00
|
|
|
|
2022-07-29 21:22:22 +00:00
|
|
|
networks:
|
2022-11-22 21:53:21 +00:00
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
pathogen:
|
|
|
|
external: true
|
|
|
|
elastic:
|
2022-11-29 07:20:21 +00:00
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
neptune_static: {}
|