@seip/blue-bird 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,69 @@
1
+ services:
2
+ app:
3
+ build:
4
+ context: .
5
+ dockerfile: docker/Dockerfile
6
+ container_name: ${TITLE:-bluebird}-app
7
+ restart: unless-stopped
8
+ expose:
9
+ - "3000"
10
+ volumes:
11
+ - .:/app
12
+ - /app/node_modules
13
+ - ./database:/app/database
14
+ env_file:
15
+ - .env
16
+ environment:
17
+ - NODE_ENV=production
18
+ - DEBUG=false
19
+ - DB_TYPE=sqlite
20
+ - DB_FILE=${DB_FILE:-database/blue_bird.db}
21
+ - DATABASE_URL=${DATABASE_URL:-sqlite:database/blue_bird.db}
22
+ - REDIS_HOST=redis
23
+ - REDIS_PORT=6379
24
+ - PORT=3000
25
+ depends_on:
26
+ redis:
27
+ condition: service_healthy
28
+ networks:
29
+ - bluebird_net
30
+ profiles:
31
+ - prod
32
+
33
+ nginx:
34
+ image: nginx:1.27-alpine
35
+ container_name: ${TITLE:-bluebird}-nginx
36
+ restart: unless-stopped
37
+ ports:
38
+ - "${PORT:-3000}:80"
39
+ volumes:
40
+ - .:/app:ro
41
+ - ./docker/nginx.conf:/etc/nginx/nginx.conf:ro
42
+ networks:
43
+ - bluebird_net
44
+ profiles:
45
+ - prod
46
+
47
+ redis:
48
+ image: redis:7-alpine
49
+ container_name: ${TITLE:-bluebird}-redis
50
+ restart: unless-stopped
51
+ ports:
52
+ - "${REDIS_PORT:-6379}:6379"
53
+ volumes:
54
+ - redis_data:/data
55
+ networks:
56
+ - bluebird_net
57
+ healthcheck:
58
+ test: ["CMD", "redis-cli", "ping"]
59
+ interval: 5s
60
+ timeout: 3s
61
+ retries: 5
62
+
63
+ volumes:
64
+ redis_data:
65
+
66
+ networks:
67
+ bluebird_net:
68
+ name: ${TITLE:-bluebird}_network
69
+ driver: bridge