file-receive-backend/docker-compose.yml

78 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-12-06 11:34:07 +08:00
version: '3.8'
services:
2023-12-08 14:39:55 +08:00
redis:
image: redis
container_name: redis
2023-12-06 11:34:07 +08:00
ports:
2023-12-08 14:39:55 +08:00
- "6379:6379"
volumes:
- ./redis/data:/data
2023-12-06 11:34:07 +08:00
networks:
2023-12-08 14:39:55 +08:00
- app
2023-12-06 11:34:07 +08:00
db:
image: postgres
2023-12-08 14:39:55 +08:00
container_name: postgres
2023-12-06 11:34:07 +08:00
environment:
POSTGRES_PASSWORD: 12345
POSTGRES_USER: postgres
networks:
- app
volumes:
2023-12-08 14:39:55 +08:00
- ./postgresql/data:/var/lib/postgresql/data
2023-12-06 11:34:07 +08:00
ports:
2023-12-08 14:39:55 +08:00
- "5432:5432"
# mongodb:
# image: mongo:6.0.9-rc1
# container_name: mongodb
# ports:
# - "27017:27017"
# networks:
# - app
# environment:
# MONGO_INITDB_ROOT_USERNAME: fecr
# MONGO_INITDB_ROOT_PASSWORD: fecr1988.wcq
# volumes:
# - ./mongodb/data:/data/db
wd-smebiz:
image: file-receive
container_name: file-receive
build:
context: ./file-receive
dockerfile: Dockerfile
2023-12-06 11:34:07 +08:00
volumes:
2023-12-08 14:39:55 +08:00
- ./file-receive:/home/file-receive
2023-12-06 11:34:07 +08:00
ports:
2023-12-08 14:39:55 +08:00
- "8041:8041"
2023-12-06 11:34:07 +08:00
networks:
- app
2023-12-08 14:39:55 +08:00
command:
bash -c "cd /home/file-receive && python3 main.py prod"
environment:
- TZ=Asia/Shanghai
depends_on:
- db
# nginx:
# image: nginx
# container_name: nginx
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx/html:/etc/nginx/html
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./nginx/cert:/etc/nginx/cert
# - ./nginx/logs:/var/log/nginx
# - ./nginx/web:/etc/nginx/web
# networks:
# - app
2023-12-06 11:34:07 +08:00
networks:
app:
2023-12-08 14:39:55 +08:00
external: true