mazash/docker-compose.yaml

41 lines
1.0 KiB
YAML
Raw Normal View History

2020-10-29 16:37:13 +01:00
version: '3'
services:
ipfs:
image: ipfs/go-ipfs:release
ports:
- 5001:5001
- 4001:4001
- 8080:8080
volumes:
- data_ipfs:/data/ipfs
db:
image: postgres:10.7-alpine
environment:
- POSTGRES_DB=dejavu
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- data_postgresql:/var/lib/postgresql/data/pgdata
python:
build:
2023-02-16 10:08:48 +01:00
context: .
dockerfile: ./python/Dockerfile
entrypoint: bash -c "/code/run_app_prod.sh"
2020-10-29 16:37:13 +01:00
environment:
2023-02-16 10:08:48 +01:00
- DATABASE_HOST=db
2021-03-09 16:52:10 +01:00
- DATABASE_DB=dejavu
- DATABASE_USER=postgres
- DATABASE_PASSWORD=password
- DATABASE_TYPE=postgres
- IPFS_HOST=/dns/ipfs/tcp/5001
2020-10-29 16:37:13 +01:00
ports:
- 5000:5000
- 8600:8600
depends_on:
- db
- ipfs
volumes:
data_ipfs:
data_postgresql: