-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
149 lines (140 loc) · 3.56 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: "3.8"
services:
proxy:
image: traefik:latest
container_name: proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./config/proxy/traefik.yml:/traefik.yml:ro
networks:
- web
- internal
db:
image: edgedb/edgedb:5.2
env_file:
- .env
restart: unless-stopped
container_name: db
volumes:
- db_data:/var/lib/edgedb/data
- ./apps/anvil/dbschema:/dbschema:ro
- ./config/secret/db:/ignis_certs:ro
networks:
- internal
healthcheck:
test: curl --fail http://db:5656/server/status/ready || exit 1
interval: 8s
retries: 10
start_period: 6s
timeout: 10s
op-connect-api:
image: 1password/connect-api:latest
container_name: op-api
restart: always
ports:
- "8080:8080"
volumes:
- "./config/secret/op/1password-credentials.json:/home/opuser/.op/1password-credentials.json"
- "1p_data:/home/opuser/.op/data"
networks:
- internal
op-connect-sync:
image: 1password/connect-sync:latest
container_name: op-sync
restart: always
volumes:
- "./config/secret/op/1password-credentials.json:/home/opuser/.op/1password-credentials.json"
- "1p_data:/home/opuser/.op/data"
networks:
- internal
cache:
image: redis:latest
container_name: cache
restart: unless-stopped
command:
- redis-server
- --requirepass $REDIS_PASSWORD
networks:
- internal
volumes:
- cache_data:/data
anvil:
build:
dockerfile: ./apps/anvil/Dockerfile
context: .
container_name: anvil
restart: unless-stopped
user: iforge
env_file:
- .env
volumes:
- "./config/anvil:/config:ro"
- ./config/secret/db:/ignis_certs:ro
networks:
- internal
- data
depends_on:
db:
condition: service_healthy
cache:
condition: service_started
op-connect-api:
condition: service_started
op-connect-sync:
condition: service_started
labels:
- "traefik.enable=true"
- "traefik.http.routers.anvil.rule=Host(`api.iforge.sheffield.ac.uk`) || Host(`anvil.localhost`) || Host(`anvil.local`)"
- "traefik.http.routers.anvil.entrypoints=https"
- "traefik.http.routers.anvil.tls=true"
mine:
build:
dockerfile: ./apps/mine/Dockerfile
context: .
container_name: mine
restart: unless-stopped
user: iforge
env_file:
- .env
volumes:
- "./config/mine:/config:ro"
networks:
- internal
depends_on:
db:
condition: service_healthy
cache:
condition: service_started
op-connect-api:
condition: service_started
op-connect-sync:
condition: service_started
labels:
- "traefik.enable=true"
- "traefik.http.routers.anvil.rule=Host(`cdn.iforge.sheffield.ac.uk`) || Host(`mine.localhost`) || Host(`mine.local`)"
- "traefik.http.routers.anvil.entrypoints=https"
- "traefik.http.routers.anvil.tls=true"
forge:
build:
dockerfile: ./apps/forge/Dockerfile
context: .
container_name: forge
restart: unless-stopped
networks:
- internal
labels:
- "traefik.enable=true"
- "traefik.http.routers.anvil.rule=Host(`iforge.sheffield.ac.uk`) || Host(`forge.localhost`) || Host(`forge.local`)"
- "traefik.http.routers.anvil.entrypoints=https"
- "traefik.http.routers.anvil.tls=true"
networks:
internal:
web:
data:
volumes:
db_data:
cache_data:
1p_data: