-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
46 lines (43 loc) · 1004 Bytes
/
docker-compose.prod.yml
File metadata and controls
46 lines (43 loc) · 1004 Bytes
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
services:
db:
container_name: hackthelab-db
restart: unless-stopped
image: postgres:latest
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- postgres_data:/var/lib/postgresql/data
- ./.docker/init.sql:/docker-entrypoint-initdb.d/1-schema.sql
ports:
- 5432:5432
redis:
container_name: hackthelab-redis
restart: unless-stopped
image: redis:latest
environment:
- REDIS_PASS
command: ["redis-server", '--requirepass "$REDIS_PASS"']
ports:
- 6379:6379
api:
container_name: hackthelab-api
restart: unless-stopped
image: ghcr.io/michiganlabs/hack-the-lab-backend:latest
ports:
- 8080:8080
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- REDIS_PASS
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- db
- redis
volumes:
postgres_data: