-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 985 Bytes
/
docker-compose.yml
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
version: "3.9"
services:
db:
container_name: confesi-db
image: postgres:14.8-alpine
command: postgres -c stats_temp_directory=/tmp
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: confesi
ports:
- 5432:5432
volumes:
- ./tmp/data:/var/lib/postgresql/data
app:
container_name: confesi-api
build:
context: .
dockerfile: development.Dockerfile
ports:
- 8080:8080
links:
- db
- redis
volumes:
- .:/confesi
- gohome:/go
environment:
PORT:
POSTGRES_DSN:
REDIS_CONN:
PUBLIC_DOC_ACCESS:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
AWS_REGION:
MASK_SECRET:
GOCACHE: /go/cache
redis:
image: redis:alpine
volumes:
- redis-data:/data
container_name: redis
ports:
- '6379:6379'
volumes:
gohome:
redis-data:
driver: local