-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 962 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
services:
app:
image: "${IMAGE_NAME}:${IMAGE_TAG}"
build:
dockerfile: Dockerfile
args:
- ENVIRONMENT
- APP_NAME
- APP_VERSION
- COMMIT_SHA
ports:
- "127.0.0.1:8200:8000"
volumes:
- tmp:/tmp
- type: bind
source: /gpfs
target: /gpfs
read_only: true
environment:
- APP_DEBUG=true
- PYTHONASYNCIODEBUG=1
- LOG_LEVEL=DEBUG
- LOG_SERIALIZE=false
- LOG_BACKTRACE=true
- LOG_DIAGNOSE=true
- LOG_STANDARD_LOGGER__root=INFO
develop:
watch:
- action: sync+restart
path: ./app
target: /code/app
- action: rebuild
path: uv.lock
healthcheck:
test: [CMD, "/code/scripts/healthcheck.sh"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
start_interval: 1s
volumes:
tmp:
driver: local
driver_opts:
type: "tmpfs"
device: "tmpfs"
o: "size=500m"