budjeto/docker-compose.yml

39 lines
823 B
YAML

version: "3"
services:
frontend:
build: app/.
container_name: budjeto_frontend
restart: always
environment:
- 'REACT_APP_API=https://apibudjeto.shellbox.fr'
ports:
- 32145:3000
backend:
build: .
container_name: budjeto_backend
restart: always
volumes:
- ./staticfiles:/app/staticfiles
environment:
- 'BUDJETO_PRODUCTION=ON'
- 'BUDJETO_SECRET=my secret'
- 'BUDJETO_DB_USER=admin'
- 'BUDJETO_DB_PASSWORD=admin'
- 'BUDJETO_DB_NAME=budjeto'
ports:
- 12764:8000
db:
image: postgres
container_name: budjeto_db
restart: always
environment:
- 'POSTGRES_USER=admin'
- 'POSTGRES_PASSWORD=admin'
- 'POSTGRES_DB=budjeto'
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: