-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.35 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
##################################################
############# --- PYMETIS --- #################
#
# Last revision - Federico Bellati - 21/11/2024
#
#version: "3.9"
services:
pymetis:
container_name: ${PYMETIS_CONTAINER_NAME}
hostname: ${PYMETIS_CONTAINER_NAME}
image: python-${PYMETIS_CONTAINER_NAME}-ismar:${PYTHON_VERSION}
build:
context: ./dockerfiles/pymetis
args:
VERSION: ${PYTHON_VERSION}
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
USER_NAME: ${PYTHON_USER_NAME}
GROUP_NAME: ${PYTHON_GROUP_NAME}
PYTHON_CONTAINER_PORT: 5000
restart: unless-stopped
environment:
- APP_SETUP=yes
- APPLICATION_PATH=${APPLICATION_PATH}
volumes:
- /etc/localtime:/etc/localtime:ro
- ./dockerfiles/pymetis/rootfs/home/python/app:/home/python/.local
- ./dockerfiles/pymetis/rootfs/home/python/app:/home/python/app
ports:
- 8080:8080
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/status/"]
interval: 60s
timeout: 10s
retries: 3
command: "sleep infinity"
#command: "python3 main.py"
networks:
- service-network
networks:
service-network:
driver: bridge
name: ${NETWORK}
external: true