-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
49 lines (46 loc) · 1010 Bytes
/
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
services:
db:
image: postgres:17-alpine
container_name: gopherdrop_db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: gopherdropdb
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d gopherdropdb"]
interval: 10s
timeout: 5s
retries: 5
networks:
- gopherdrop
app:
build:
context: .
dockerfile: Dockerfile
args:
- VITE_API_URL=/api
container_name: gopherdrop_app
environment:
DB_HOST: db
DB_USER: user
DB_PASSWORD: pass
DB_NAME: gopherdropdb
DB_SSLMODE: disable
SECRET_KEY: supersecretkeysupersecretkey32
LISTEN_ADDR: :8080
STORAGE_PATH: /app/storage
MAX_FILE_SIZE: 10485760
depends_on:
db:
condition: service_healthy
ports:
- "8081:80"
networks:
- gopherdrop
networks:
gopherdrop:
driver: bridge
volumes:
db_data: {}