-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (40 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
53 lines (40 loc) · 838 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
47
48
49
50
51
52
53
services:
db:
image: postgres:16
container_name: slotify-db
restart: always
environment:
POSTGRES_USER: slotify
POSTGRES_PASSWORD: slotify
POSTGRES_DB: slotify
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U slotify"]
interval: 5s
timeout: 5s
retries: 5
app:
image: smartcraze/slotify:latest
build:
context: .
secrets:
- env
container_name: slotify-app
restart: always
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://slotify:slotify@db:5432/slotify?sslmode=disable
env_file:
- .env
depends_on:
db:
condition: service_healthy
volumes:
pgdata:
secrets:
env:
file: .env