File size: 1,048 Bytes
a2399ed
 
 
 
 
 
 
 
7beb700
a2399ed
 
 
7beb700
 
 
98c95a0
 
a2399ed
 
 
 
 
 
 
 
 
 
 
 
d22b35c
98c95a0
 
a2399ed
 
98c95a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.8'

services:
  app:
    container_name: api-qobiltu
    build: .
    depends_on:
      - db
      - redis
    env_file: .env
    ports:
      - "8080:8080"
    volumes:
      - ./logs:/app/logs
      - ./uploads:/app/uploads
    networks:
      - qobiltu-network
    restart: unless-stopped

  db:
    image: postgres:15
    container_name: postgres-db
    environment:
      POSTGRES_USER: ${DB_USER}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_DB: ${DB_NAME}
    ports:
      - "5432:5432"
    volumes:
      - /home/qobiltu/postgres-data:/var/lib/postgresql/data
    networks:
      - qobiltu-network
    restart: always

  redis:
      image: redis/redis-stack:7.2.0-v11
      container_name: redis-db
      environment:
          REDIS_ARGS: "--requirepass ${REDIS_PASSWORD:-qobiltu}"
      ports:
          - "8001:8001"
          - "6379:6379"
      volumes:
          - /home/qobiltu/redis-data:/data
      networks:
          - qobiltu-network
      restart: always

networks:
  qobiltu-network:
    driver: bridge