-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
88 lines (88 loc) · 2.39 KB
/
docker-compose.yaml
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
services:
router:
image: ghcr.io/apollographql/router:v1.19.0
environment:
- APOLLO_SCHEMA_CONFIG_EMBEDDED=true
- APOLLO_ROUTER_LOG=error
volumes:
- ./knighthacks_router/schema.graphql:/etc/config/supergraph.graphql
- ./knighthacks_router/script.rhai:/etc/config/script.rhai
- ./knighthacks_router/configuration.yaml:/etc/config/configuration.yaml
command: [ "-c", "/etc/config/configuration.yaml", "--supergraph", "/etc/config/supergraph.graphql" ]
ports:
- "4000:4000"
events:
depends_on:
- router
- postgres
build:
context: ./knighthacks_events
dockerfile: ./Dockerfile
env_file: [ .env ]
environment:
GIN_MODE: "debug"
TRUSTED_PROXIES: ""
DATABASE_URI: "postgresql://postgres:test@postgres:5432/postgres"
users:
depends_on:
- router
- postgres
build:
context: ./knighthacks_users
dockerfile: ./Dockerfile
env_file: [ .env ]
environment:
GIN_MODE: "debug"
TRUSTED_PROXIES: ""
DATABASE_URI: "postgresql://postgres:test@postgres:5432/postgres"
volumes:
- ./testing/email-templates:/etc/config
sponsors:
depends_on:
- router
- postgres
build:
context: ./knighthacks_sponsors
dockerfile: ./Dockerfile
env_file: [ .env ]
environment:
GIN_MODE: "debug"
TRUSTED_PROXIES: ""
DATABASE_URI: "postgresql://postgres:test@postgres:5432/postgres"
hackathon:
depends_on:
- router
- postgres
build:
context: ./knighthacks_hackathon
dockerfile: ./Dockerfile
env_file: [ .env ]
environment:
GIN_MODE: "debug"
TRUSTED_PROXIES: ""
DATABASE_URI: "postgresql://postgres:test@postgres:5432/postgres"
volumes:
- ./testing/email-templates:/etc/config
postgres:
image: "postgres:14-alpine"
restart: always
command: [ "postgres", "-c", "log_statement=all" ]
environment:
POSTGRES_PASSWORD: test
ports:
- "5432:5432"
volumes:
- ./testing/postgres/init.sql:/docker-entrypoint-initdb.d/db.sql
- ./postgres-data:/var/lib/postgresql/data
- ./postgres-logs:/logs:z
hackathon-site-2023:
build:
context: ./hackathon-site-2023
dockerfile: ./Dockerfile
depends_on:
- router
environment:
NEXT_PUBLIC_API_ENDPOINT: http://router:4000
volumes:
postgres-data:
postgres-logs: