2023-06-20 20:05:15 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
2023-07-17 20:47:05 +00:00
|
|
|
networks:
|
|
|
|
localstack-net:
|
|
|
|
name: localstack-net
|
|
|
|
driver: bridge
|
2024-01-30 20:22:17 +00:00
|
|
|
minio_network:
|
|
|
|
name: minio_network
|
|
|
|
driver: bridge
|
2023-07-17 20:47:05 +00:00
|
|
|
|
2023-06-20 20:05:15 +00:00
|
|
|
services:
|
|
|
|
api:
|
|
|
|
container_name: api
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
2023-07-12 18:05:17 +00:00
|
|
|
- redis
|
2023-07-17 20:47:05 +00:00
|
|
|
- localstack
|
2023-06-20 20:05:15 +00:00
|
|
|
env_file:
|
2023-08-08 22:52:28 +00:00
|
|
|
- docker.env
|
2023-06-20 20:05:15 +00:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: postgres
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
env_file:
|
2023-08-08 22:52:28 +00:00
|
|
|
- docker.env
|
2023-06-20 20:05:15 +00:00
|
|
|
volumes:
|
|
|
|
- postgres:/var/lib/postgresql/data
|
2023-07-31 23:18:07 +00:00
|
|
|
|
2024-01-30 20:22:17 +00:00
|
|
|
minio:
|
|
|
|
image: bitnami/minio
|
2023-07-17 20:47:05 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2024-01-30 20:22:17 +00:00
|
|
|
- '9000:9000'
|
|
|
|
- '9001:9001'
|
|
|
|
networks:
|
|
|
|
- minio_network
|
|
|
|
volumes:
|
|
|
|
- 'minio_data:/data'
|
2023-07-17 20:47:05 +00:00
|
|
|
env_file:
|
2023-08-08 22:52:28 +00:00
|
|
|
- docker.env
|
2023-06-20 20:05:15 +00:00
|
|
|
|
2023-07-12 18:05:17 +00:00
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: redis
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
command: redis-server --save 20 1 --loglevel warning --requirepass not_a_production_pass
|
|
|
|
volumes:
|
|
|
|
- redis:/data
|
|
|
|
|
2023-06-20 20:05:15 +00:00
|
|
|
volumes:
|
|
|
|
postgres:
|
2023-07-12 18:05:17 +00:00
|
|
|
name: backend-db
|
|
|
|
redis:
|
2023-07-17 20:47:05 +00:00
|
|
|
driver: local
|
2024-01-30 20:22:17 +00:00
|
|
|
minio_data:
|
|
|
|
driver: local
|