-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (71 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
77 lines (71 loc) · 1.61 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
version: "3.9"
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: guild_user
POSTGRES_PASSWORD: guild_password
POSTGRES_DB: guild_genesis
ports:
- "5433:5432"
volumes:
- pg_data:/var/lib/postgresql/data
backend:
build: ./backend
command: ["/app/app"]
environment:
RUST_LOG: debug
RUST_BACKTRACE: 1
PORT: 3001
env_file:
- .env
ports:
- "3001:3001"
depends_on:
- postgres
indexer:
build: ./indexer
command: ["/app/app"]
environment:
RUST_LOG: debug
RUST_BACKTRACE: 1
PORT: 3002
env_file:
- .env
ports:
- "3002:3002"
depends_on:
- postgres
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
PUBLIC_WALLET_CONNECT_PROJECT_ID: ${PUBLIC_WALLET_CONNECT_PROJECT_ID}
PUBLIC_API_URL: ${PUBLIC_API_URL}
PUBLIC_BADGE_REGISTRY_ADDRESS: ${PUBLIC_BADGE_REGISTRY_ADDRESS}
PUBLIC_EAS_CONTRACT_ADDRESS: ${PUBLIC_EAS_CONTRACT_ADDRESS}
PUBLIC_ACTIVITY_TOKEN_ADDRESS: ${PUBLIC_ACTIVITY_TOKEN_ADDRESS}
PUBLIC_SCHEMA_ID: ${PUBLIC_SCHEMA_ID}
env_file:
- .env
environment:
HOST: 0.0.0.0
PORT: 3000
NODE_ENV: production
ports:
- "3000:3000"
depends_on:
- backend
discord-bot:
build: ./discord-bot
env_file:
- .env
environment:
DATABASE_URL: postgresql://guild_user:guild_password@postgres:5432/guild_genesis
NODE_ENV: production
depends_on:
- postgres
restart: unless-stopped
volumes:
pg_data: