2022-10-13 14:26:43 +00:00
|
|
|
version: "2.2"
|
2024-11-16 17:31:43 +00:00
|
|
|
|
|
|
|
name: fisk_dev
|
|
|
|
|
2022-10-13 14:26:43 +00:00
|
|
|
services:
|
2024-11-16 17:31:43 +00:00
|
|
|
app_dev:
|
|
|
|
image: xf/fisk:dev
|
|
|
|
container_name: fisk_dev
|
2022-10-18 06:22:22 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
2022-10-13 14:26:43 +00:00
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-10-18 06:22:22 +00:00
|
|
|
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
|
2022-10-15 21:36:11 +00:00
|
|
|
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
|
2024-11-16 17:31:43 +00:00
|
|
|
- fisk_static_dev:${STATIC_ROOT}
|
2022-10-13 14:26:43 +00:00
|
|
|
#ports:
|
|
|
|
# - "8000:8000" # uwsgi socket
|
|
|
|
env_file:
|
2022-10-18 06:22:22 +00:00
|
|
|
- stack.env
|
2024-11-16 17:31:43 +00:00
|
|
|
# volumes_from:
|
|
|
|
# - tmp_dev
|
2022-10-13 14:26:43 +00:00
|
|
|
depends_on:
|
|
|
|
# redis:
|
|
|
|
# condition: service_healthy
|
2024-11-16 17:31:43 +00:00
|
|
|
migration_dev:
|
2022-10-13 14:26:43 +00:00
|
|
|
condition: service_started
|
2024-11-16 17:31:43 +00:00
|
|
|
collectstatic_dev:
|
2022-10-13 14:26:43 +00:00
|
|
|
condition: service_started
|
2022-10-18 06:22:22 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- xf
|
2024-11-16 17:31:43 +00:00
|
|
|
# - db
|
2022-10-13 14:26:43 +00:00
|
|
|
|
2024-11-16 17:31:43 +00:00
|
|
|
scheduling_dev:
|
|
|
|
image: xf/fisk:dev
|
|
|
|
container_name: scheduling_fisk_dev
|
2023-02-17 07:20:19 +00:00
|
|
|
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_DATABASE_FILE}:/conf/db.sqlite3
|
2024-11-16 17:31:43 +00:00
|
|
|
- fisk_static_dev:${STATIC_ROOT}
|
2023-02-17 07:20:19 +00:00
|
|
|
env_file:
|
|
|
|
- stack.env
|
2024-11-16 17:31:43 +00:00
|
|
|
# volumes_from:
|
|
|
|
# - tmp_dev
|
2023-02-17 07:20:19 +00:00
|
|
|
depends_on:
|
2024-11-16 17:31:43 +00:00
|
|
|
redis_dev:
|
2023-07-29 16:28:12 +00:00
|
|
|
condition: service_healthy
|
2024-11-16 17:31:43 +00:00
|
|
|
migration_dev:
|
2023-02-17 07:20:19 +00:00
|
|
|
condition: service_started
|
2024-11-16 17:31:43 +00:00
|
|
|
collectstatic_dev:
|
2023-02-17 07:20:19 +00:00
|
|
|
condition: service_started
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- xf
|
2024-11-16 17:31:43 +00:00
|
|
|
# - db
|
2023-02-17 07:20:19 +00:00
|
|
|
|
2024-11-16 17:31:43 +00:00
|
|
|
migration_dev:
|
|
|
|
image: xf/fisk:dev
|
|
|
|
container_name: migration_fisk_dev
|
2022-10-18 06:22:22 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
2022-10-13 14:26:43 +00:00
|
|
|
command: sh -c '. /venv/bin/activate && python manage.py migrate --noinput'
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-10-15 21:36:11 +00:00
|
|
|
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
|
2024-11-16 17:31:43 +00:00
|
|
|
- fisk_static_dev:${STATIC_ROOT}
|
|
|
|
# volumes_from:
|
|
|
|
# - tmp_dev
|
2022-10-13 14:26:43 +00:00
|
|
|
env_file:
|
2022-10-18 06:22:22 +00:00
|
|
|
- stack.env
|
2022-10-13 14:26:43 +00:00
|
|
|
|
2024-11-16 17:31:43 +00:00
|
|
|
collectstatic_dev:
|
|
|
|
image: xf/fisk:dev
|
|
|
|
container_name: collectstatic_fisk_dev
|
2022-10-18 06:22:22 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OPERATION: ${OPERATION}
|
2022-10-13 14:26:43 +00:00
|
|
|
command: sh -c '. /venv/bin/activate && python manage.py collectstatic --noinput'
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-10-15 21:36:11 +00:00
|
|
|
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
|
2024-11-16 17:31:43 +00:00
|
|
|
- fisk_static_dev:${STATIC_ROOT}
|
|
|
|
# volumes_from:
|
|
|
|
# - tmp_dev
|
2022-10-13 14:26:43 +00:00
|
|
|
env_file:
|
2022-10-18 06:22:22 +00:00
|
|
|
- stack.env
|
2022-10-13 14:26:43 +00:00
|
|
|
|
2024-11-16 17:31:43 +00:00
|
|
|
nginx_dev:
|
2023-07-29 16:28:12 +00:00
|
|
|
image: nginx:latest
|
2024-11-16 17:31:43 +00:00
|
|
|
container_name: nginx_fisk_dev
|
2022-10-13 14:26:43 +00:00
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:9999
|
2023-07-29 16:28:12 +00:00
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
2022-10-13 14:26:43 +00:00
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-10-18 06:22:22 +00:00
|
|
|
- ${PORTAINER_GIT_DIR}/docker/nginx/conf.d/${OPERATION}.conf:/etc/nginx/conf.d/default.conf
|
2024-11-16 17:31:43 +00:00
|
|
|
- fisk_static_dev:${STATIC_ROOT}
|
|
|
|
# volumes_from:
|
|
|
|
# - tmp_dev
|
2022-10-18 06:22:22 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- xf
|
2022-10-13 14:26:43 +00:00
|
|
|
depends_on:
|
2024-11-16 17:31:43 +00:00
|
|
|
app_dev:
|
2022-10-13 14:26:43 +00:00
|
|
|
condition: service_started
|
|
|
|
|
|
|
|
|
|
|
|
# volumes_from:
|
|
|
|
# - tmp
|
|
|
|
# depends_on:
|
|
|
|
# redis:
|
|
|
|
# condition: service_healthy
|
|
|
|
|
2024-11-16 17:31:43 +00:00
|
|
|
# tmp_dev:
|
|
|
|
# image: busybox
|
|
|
|
# container_name: tmp_fisk_dev
|
|
|
|
# command: chmod -R 777 /var/run/socks
|
|
|
|
# volumes:
|
|
|
|
# - /var/run/socks
|
2022-10-13 14:26:43 +00:00
|
|
|
|
2023-07-29 16:28:12 +00:00
|
|
|
# For caching
|
2024-11-16 17:31:43 +00:00
|
|
|
redis_dev:
|
2023-07-29 16:28:12 +00:00
|
|
|
image: redis
|
2024-11-16 17:31:43 +00:00
|
|
|
container_name: redis_fisk_dev
|
2023-07-29 16:28:12 +00:00
|
|
|
command: redis-server /etc/redis.conf
|
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
2024-11-16 17:31:43 +00:00
|
|
|
- fisk_redis_data_dev:/data
|
|
|
|
# volumes_from:
|
|
|
|
# - tmp_dev
|
2023-07-29 16:28:12 +00:00
|
|
|
healthcheck:
|
2024-11-16 17:31:43 +00:00
|
|
|
test: "redis-cli ping"
|
2023-07-29 16:28:12 +00:00
|
|
|
interval: 2s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 15
|
2023-02-11 14:00:09 +00:00
|
|
|
|
|
|
|
# pyroscope:
|
|
|
|
# image: "pyroscope/pyroscope:latest"
|
|
|
|
# ports:
|
|
|
|
# - "4040:4040"
|
|
|
|
# command:
|
|
|
|
# - "server"
|
2022-10-13 14:26:43 +00:00
|
|
|
|
|
|
|
networks:
|
2022-10-18 06:22:22 +00:00
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
xf:
|
|
|
|
external: true
|
2024-11-16 17:31:43 +00:00
|
|
|
# db:
|
|
|
|
# external: true
|
2022-10-13 14:26:43 +00:00
|
|
|
|
2022-10-15 21:47:42 +00:00
|
|
|
volumes:
|
2024-11-16 17:31:43 +00:00
|
|
|
fisk_static_dev: {}
|
|
|
|
fisk_redis_data_dev: {}
|