2024-02-06 10:21:09 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
build: app/.
|
2024-02-07 17:09:07 +00:00
|
|
|
container_name: budjeto_frontend
|
2024-02-06 10:21:09 +00:00
|
|
|
restart: always
|
2024-02-07 17:09:07 +00:00
|
|
|
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:
|
2024-02-07 17:09:07 +00:00
|
|
|
- ./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:
|