forked from neamm/auto.fun
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (104 loc) · 2.75 KB
/
docker-compose.yml
File metadata and controls
109 lines (104 loc) · 2.75 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
- "8787:8787"
volumes:
- .:/app
- /app/node_modules
environment:
# IS_DOCKER=true # This can be set in .env.development.local if needed
- NODE_ENV=development # Explicitly set NODE_ENV for dotenv-flow
- REDIS_HOST=redis
- REDIS_PORT=6379
# Passwords and DB connection string are expected to be in the copied .env file
- REDIS_PASSWORD=MDikUKnhRHlURlnORexvVztDTrNCUBze
- DATABASE_URL=postgres://autofun_owner:npg_2PDZgJfEtrh6@postgres:5432/autofun
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=autofun_owner
- DB_PASSWORD=npg_2PDZgJfEtrh6
- DB_NAME=autofun
- MINIO_ENDPOINT=minio
- MINIO_PORT=9000
- MINIO_ACCESS_KEY=minio_user
- MINIO_SECRET_KEY=minio_password
- MINIO_BUCKET_NAME=autofun
- WEBHOOK_PUBLIC_URL=http://localhost:8787 # Might be overridden by tunnel script
- WAIT_FOR_POSTGRES=true
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_healthy
networks:
- app-network
postgres:
image: postgres:15
container_name: autofun-postgres
environment:
POSTGRES_USER: autofun_owner
POSTGRES_PASSWORD: npg_2PDZgJfEtrh6
POSTGRES_DB: autofun
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U autofun_owner -d autofun"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
redis:
image: redis:7
container_name: autofun-redis
command: redis-server --requirepass MDikUKnhRHlURlnORexvVztDTrNCUBze
ports:
- "6379:6379"
volumes:
- redis-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "-a", "MDikUKnhRHlURlnORexvVztDTrNCUBze", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
minio:
image: minio/minio
container_name: autofun-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minio_user
MINIO_ROOT_PASSWORD: minio_password
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
postgres-data:
redis-data:
minio-data: