-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (77 loc) · 1.87 KB
/
docker-compose.yml
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
version: "3.7"
services:
frontend:
build:
context: frontend
dockerfile: Dockerfile.dev
depends_on:
- backend
- minio
expose:
- 3000
volumes:
- ./frontend/:/codestrands/
backend:
build:
context: backend
dockerfile: Dockerfile.dev
depends_on:
- minio
- postgres
- redis
environment:
DATABASE_URL: postgres://codestrands:codestrands@postgres:5432/codestrands
REDIS_URL: redis://:codestrands@redis:6379
DEBUG: "true"
SECRET_KEY: yaVjiPmcBWeMffDk5jhkLVwLMuQnAe6fCdK5a9jd6v9Ysc3boZnMeAp7AmXV5hnk
OAUTH_REDIRECT_URI: http://codestrands.local:8000/auth/callback
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
OAUTH_URL: ${OAUTH_URL}
expose:
- 8000
volumes:
- ./backend/:/app/
redis:
image: redis:6
command: redis-server --requirepass codestrands --appendonly yes
ports:
- 6379:6379
volumes:
- ./redis_data/:/data/
postgres:
image: postgres:13
environment:
POSTGRES_DB: codestrands
POSTGRES_USER: codestrands
POSTGRES_PASSWORD: codestrands
ports:
- 5432:5432
volumes:
- ./postgres_data/:/var/lib/postgresql/data/
minio:
image: minio/minio:RELEASE.2021-07-12T02-44-53Z
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: codestrands
MINIO_ROOT_PASSWORD: codestrands
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
ports:
- 9000:9000
- 9001:9001
volumes:
- ./minio_data/:/data/
nginx:
image: nginx:1.21
depends_on:
- backend
- frontend
- minio
ports:
- 8000:80
volumes:
- ./nginx.conf/:/etc/nginx/nginx.conf/:ro