-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yml
81 lines (72 loc) Β· 1.9 KB
/
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
74
75
76
77
78
79
80
version: "3"
services:
yandex_voice_translate_bot:
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
image: yandex-voice-translate-bot:latest
container_name: yandex-voice-translate-bot$CONTAINER_NUMBER
#platform: linux/amd64
command: pnpm start
env_file: ./.env
user: root
# logging:
# driver: local
# options:
# # path: ./yandex_voice_translate_bot.log
# max-size: "100m"
# max-file: "5"
volumes:
- ./docker_session:/app/session
deploy:
# https://docs.docker.com/compose/compose-file/compose-file-v3/#resources
resources:
limits:
cpus: "4" # (max cores)
memory: 3G
#reservations:
# cpus: 0.25
# memory: 256M
networks:
- yandex-voice-translate-bot_default
image_translate:
build:
context: ./image-translate
dockerfile: ./Dockerfile
restart: unless-stopped
image: image-translate:latest
container_name: image-translate$CONTAINER_NUMBER
command: pnpm start
env_file: ./image-translate/.env
user: root
volumes:
- $CHROME_USER_DATA_DIR:/app/$CHROME_USER_DATA_DIR
networks:
- yandex-voice-translate-bot_default
networks:
yandex-voice-translate-bot_default:
name: yandex-voice-translate-bot_default$CONTAINER_NUMBER
# telegram_upload:
# build:
# context: ../telegram-upload
# dockerfile: ./Dockerfile
# restart: unless-stopped
# image: telegram-upload:latest
# container_name: telegram-upload
# platform: linux/amd64
# expose:
# - 3000
# command: gunicorn -w 1 'src.main:app' -b '0.0.0.0:3000'
# networks:
# - ${CONTAINER_NAME}_net
# volumes:
# - /app/node_modules
# - .:/app:z
# ports:
# - "${PORT}:${PORT}"
# env_file:
# - ./.env
# networks:
# "example2_net":
# name: "${CONTAINER_NAME}_net"