2024-02-24 23:38:08 -08:00
|
|
|
services:
|
2024-12-15 14:27:55 -08:00
|
|
|
|
2024-02-24 23:38:08 -08:00
|
|
|
db:
|
|
|
|
shm_size: 128mb
|
|
|
|
image: postgres
|
|
|
|
env_file:
|
|
|
|
- ./.env.docker
|
|
|
|
volumes:
|
2024-02-25 06:51:10 -08:00
|
|
|
- ./pgdata:/var/lib/postgresql/data
|
2024-12-15 14:27:55 -08:00
|
|
|
networks:
|
|
|
|
- pf_network
|
|
|
|
|
2024-02-24 23:38:08 -08:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
env_file:
|
|
|
|
- ./.env.docker
|
2024-12-15 14:27:55 -08:00
|
|
|
networks:
|
|
|
|
- pf_network
|
|
|
|
|
2024-02-24 23:38:08 -08:00
|
|
|
celery:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: builder
|
2024-12-15 14:27:55 -08:00
|
|
|
container_name: piefed_celery1
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2024-02-24 23:38:08 -08:00
|
|
|
env_file:
|
|
|
|
- ./.env.docker
|
|
|
|
entrypoint: ./entrypoint_celery.sh
|
2024-02-27 07:57:26 -08:00
|
|
|
volumes:
|
|
|
|
- ./media/:/app/app/static/media/
|
2024-12-15 14:27:55 -08:00
|
|
|
networks:
|
|
|
|
- pf_network
|
|
|
|
|
|
|
|
web:
|
2024-02-24 23:38:08 -08:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: builder
|
2024-12-15 14:27:55 -08:00
|
|
|
container_name: piefed_app1
|
2024-02-24 23:38:08 -08:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file:
|
|
|
|
- ./.env.docker
|
|
|
|
volumes:
|
2024-12-15 14:27:55 -08:00
|
|
|
- ./gunicorn.conf.py:/app/gunicorn.conf.py
|
2024-02-25 06:51:10 -08:00
|
|
|
- ./media/:/app/app/static/media/
|
2024-02-24 23:38:08 -08:00
|
|
|
ports:
|
2024-12-15 14:27:55 -08:00
|
|
|
- '8030:5000'
|
|
|
|
networks:
|
|
|
|
- pf_network
|
|
|
|
|
2024-02-24 23:38:08 -08:00
|
|
|
adminer:
|
|
|
|
image: adminer
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8888:8080
|
2024-12-15 14:27:55 -08:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- pf_network
|
2024-02-24 23:38:08 -08:00
|
|
|
|
|
|
|
|
2024-12-15 14:27:55 -08:00
|
|
|
networks:
|
|
|
|
pf_network:
|
|
|
|
name: pf_network
|
|
|
|
external: false
|