mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
add pf_network and depends_on to docker compose file
This commit is contained in:
parent
52be7bad5d
commit
fb1b357576
3 changed files with 29 additions and 3 deletions
32
compose.yaml
32
compose.yaml
|
@ -1,4 +1,5 @@
|
||||||
services:
|
services:
|
||||||
|
|
||||||
db:
|
db:
|
||||||
shm_size: 128mb
|
shm_size: 128mb
|
||||||
image: postgres
|
image: postgres
|
||||||
|
@ -6,37 +7,62 @@ services:
|
||||||
- ./.env.docker
|
- ./.env.docker
|
||||||
volumes:
|
volumes:
|
||||||
- ./pgdata:/var/lib/postgresql/data
|
- ./pgdata:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- pf_network
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.docker
|
- ./.env.docker
|
||||||
|
networks:
|
||||||
|
- pf_network
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: builder
|
target: builder
|
||||||
|
container_name: piefed_celery1
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- redis
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.docker
|
- ./.env.docker
|
||||||
entrypoint: ./entrypoint_celery.sh
|
entrypoint: ./entrypoint_celery.sh
|
||||||
volumes:
|
volumes:
|
||||||
- ./media/:/app/app/static/media/
|
- ./media/:/app/app/static/media/
|
||||||
web:
|
networks:
|
||||||
|
- pf_network
|
||||||
|
|
||||||
|
web:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: builder
|
target: builder
|
||||||
|
container_name: piefed_app1
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.docker
|
- ./.env.docker
|
||||||
volumes:
|
volumes:
|
||||||
- ./.gunicorn.conf.py:/app/gunicorn.conf.py
|
- ./gunicorn.conf.py:/app/gunicorn.conf.py
|
||||||
- ./media/:/app/app/static/media/
|
- ./media/:/app/app/static/media/
|
||||||
ports:
|
ports:
|
||||||
- '8080:5000'
|
- '8030:5000'
|
||||||
|
networks:
|
||||||
|
- pf_network
|
||||||
|
|
||||||
adminer:
|
adminer:
|
||||||
image: adminer
|
image: adminer
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8888:8080
|
- 8888:8080
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
networks:
|
||||||
|
- pf_network
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pf_network:
|
||||||
|
name: pf_network
|
||||||
|
external: false
|
||||||
|
|
0
entrypoint.sh
Normal file → Executable file
0
entrypoint.sh
Normal file → Executable file
0
entrypoint_celery.sh
Normal file → Executable file
0
entrypoint_celery.sh
Normal file → Executable file
Loading…
Reference in a new issue