This repository was archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (72 loc) · 1.58 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.9'
services:
debug:
build:
dockerfile: Dockerfile
context: .
target: debug
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
ports:
- "40000:40000"
command: "dlv exec --listen=127.0.0.1:40000 --headless=true --api-version=2 --accept-multiclient /stay-healthy-backend"
networks:
- stay_healthy_api
app:
build:
dockerfile: Dockerfile
context: .
target: dev
volumes:
- .:/opt/app/api
environment:
AH_AHSERVER_PORT: ":8080"
ports:
- "7070:8080"
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
networks:
- stay_healthy_api
postgres:
env_file:
- .env.compose
hostname: postgres
image: postgres:alpine
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5435:5432"
restart: on-failure
volumes:
- ./.data/docker-postgres:/var/lib/postgresql/data
networks:
- stay_healthy_api
redis:
env_file:
- .env.compose
container_name: redis
hostname: redis
image: redis:latest
command: redis-server --port 6380
ports:
- "6380:6380"
expose:
- "6380"
# environment:
# REDIS_HOST: ${REDIS_HOST}
# REDIS_PASSWORD: ${REDIS_PASSWORD}
# REDIS_DB: ${REDIS_DB}
volumes:
- ./.data/docker-redis:/var/lib/redis/data
networks:
- stay_healthy_api
networks:
stay_healthy_api: