-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.19 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
services:
snaptime-backend:
container_name: snaptime_backend
# image: ghcr.io/snaptime-app/backend
build: .
restart: unless-stopped
volumes:
- uploads:/app/uploads:rw
- sqlite_data:/app/prod_database
ports:
- 8081:8080
env_file:
- .env.prod
# environment:
# - DATABASE_PROVIDER=postgres
# - DATABASE_URL=snaptime:password@snaptime_database:5432/snaptime
# depends_on:
# database:
# condition: service_healthy
# database:
# container_name: snaptime_database
# image: postgres:16.4
# restart: always
# environment:
# - POSTGRES_USER=user
# - POSTGRES_PASSWORD=password
# - POSTGRES_DB=snaptime
# healthcheck:
# test: ["CMD-SHELL", "pg_isready"]
# interval: 1s
# volumes:
# - pgdata:/var/lib/postgresql/data:rw
# adminer:
# image: adminer
# restart: always
# ports:
# - 8080:8080
volumes:
uploads:
driver: local
driver_opts:
type: none
o: bind
device: '/srv/snaptime/uploads'
sqlite_data:
# driver: local
# driver_opts:
# type: none
# o: bind
# device: '/srv/snaptime/database'
pgdata: