budjeto/docker-compose.yml

39 lines
815 B
YAML
Raw Normal View History

2024-02-06 10:21:09 +00:00
version: "3"
services:
frontend:
build: app/.
container_name: budjeto_frontend
2024-02-06 10:21:09 +00:00
restart: always
environment:
- 'REACT_APP_API=http://localhost:12764'
2024-02-06 10:21:09 +00:00
ports:
- 32145:3000
backend:
build: .
container_name: budjeto_backend
restart: always
volumes:
- ./staticfiles:/app/staticfiles
2024-02-06 10:21:09 +00:00
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: