-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.local.yml
118 lines (117 loc) · 2.76 KB
/
docker-compose.local.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
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
110
111
112
113
114
115
116
117
version: '3.8'
services:
s3:
image: minio/minio
volumes:
- s3-data2:/data
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: gTrAG8kUcN9RBW
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
networks:
harika-network:
aliases:
- s3
db:
image: postgres
restart: always
environment:
POSTGRES_USER: harika-user
POSTGRES_PASSWORD: 'oZr3eweYo9vZrZ'
POSTGRES_DB: harika-dev
volumes:
- pgdata:/var/lib/postgresql/data
networks:
harika-network:
aliases:
- db
backend:
build:
context: .
dockerfile: build/backend/Dockerfile
environment:
DB_USER: harika-user
DB_PASSWORD: 'oZr3eweYo9vZrZ'
DB_NAME: harika-dev
DB_HOST: db
DB_POOL_MIN: 5
DB_POOL_MAX: 10
KRATOS_URL: http://kratos:4433
S3_ACCESS_TOKEN: 'FAOYW3CI7HL4ZXRJ00H4'
S3_SECRET_KEY: '0x6h5JBDS4rvE95ewppktmgA9+xLzL95CzhgxnJ4'
S3_ENDPOINT: http://s3
S3_PUBLIC_URL: 'http://localhost:9000'
S3_UPLOADS_BUCKET_NAME: uploads
depends_on:
- db
- s3
networks:
harika-network:
aliases:
- backend
frontend:
build:
context: .
dockerfile: build/frontend/Dockerfile
args:
VITE_PUBLIC_WS_BASE: 'http://localhost:3000'
VITE_PUBLIC_WS_PATH: '/api/socket.io'
VITE_PUBLIC_API_URL: 'http://localhost:3000/api'
VITE_PUBLIC_AUTH_URL: 'http://localhost:3000/api/auth'
VITE_ENABLE_SW: 'false'
networks:
harika-network:
aliases:
- frontend
proxy-server:
build:
context: .
dockerfile: build/proxy/Dockerfile
depends_on:
- frontend
- backend
- s3
ports:
- '3000:3000'
networks:
harika-network:
aliases:
- proxy-server
kratos-migrate:
depends_on:
- db
image: oryd/kratos:v0.9.0-alpha.2
environment:
- DSN=postgres://harika-user:oZr3eweYo9vZrZ@db/harika-dev
volumes:
- type: bind
source: ./build/kratos
target: /etc/config/kratos
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
restart: on-failure
networks:
- harika-network
kratos:
depends_on:
- db
- kratos-migrate
image: oryd/kratos:v0.9.0-alpha.2
restart: unless-stopped
environment:
- DSN=postgres://harika-user:oZr3eweYo9vZrZ@db/harika-dev
- LOG_LEVEL=trace
command: serve -c /etc/config/kratos/kratos.yml --watch-courier --dev
volumes:
- type: bind
source: ./build/kratos
target: /etc/config/kratos
networks:
- harika-network
volumes:
pgdata:
s3-data2:
networks:
harika-network: