-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
67 lines (63 loc) · 1.46 KB
/
docker-compose.dev.yml
File metadata and controls
67 lines (63 loc) · 1.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
# Development environment
# Usage: docker compose -f docker-compose.dev.yml up -d
services:
postgres:
image: postgres:16-alpine
container_name: wikikeeper-postgres-dev
environment:
POSTGRES_DB: wikikeeper
POSTGRES_USER: wikikeeper
POSTGRES_PASSWORD: wikikeeper123
POSTGRES_INITDB_ARGS: "-E UTF8"
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
shm_size: 2g
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wikikeeper"]
interval: 5s
timeout: 5s
retries: 10
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: wikikeeper-backend-dev
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: wikikeeper
DB_PASSWORD: wikikeeper123
DB_NAME: wikikeeper
PORT: 8000
HOST: 0.0.0.0
LOG_LEVEL: DEBUG
HTTP_TIMEOUT: 30.0
ADMIN_TOKEN: test
ports:
- "8000:8000"
volumes:
- ./backend:/app
- backend_deps:/go/pkg/mod
depends_on:
postgres:
condition: service_healthy
adminer:
image: adminer:latest
container_name: wikikeeper-adminer-dev
environment:
ADMINER_DEFAULT_SERVER: postgres
ADMINER_DESIGN: nette
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
profiles:
- tools
volumes:
postgres_dev_data:
driver: local
backend_deps:
driver: local