-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
71 lines (67 loc) · 1.87 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
version: "3.5"
services:
devcontainer:
container_name: devcontainer
image: ghcr.io/ifooth/devcontainer:main
restart: always
network_mode: host
hostname: devcontainer
env_file:
- dev.env
volumes:
- /data/devcontainer/data:/data
- /data/devcontainer/root:/root
- /var/run/docker.sock:/var/run/docker.sock
devcontainer-nightly:
container_name: devcontainer-nightly
image: ghcr.io/ifooth/devcontainer:latest
restart: always
network_mode: host
hostname: devcontainer-nightly
env_file:
- dev.env
environment:
SSHD_PORT: 36023 # custom sshd port
DEV_SERVER_PORT: 8023 # custom dev server port
JUPYTER_PORT: 8089 # custom jupyter lab port
PRE_SCRIPT_FILE: /usr/local/bin/pre-script.sh
POST_SCRIPT_FILE: /usr/local/bin/post-script.sh
volumes:
- /data/devcontainer-nightly/data:/data
- /data/devcontainer-nightly/root:/root
# - ./pre-script.sh:/usr/local/bin/pre-script.sh your custom pre script
# - ./post-script.sh:/usr/local/bin/post-script.sh your custom post script
- /var/run/docker.sock:/var/run/docker.sock
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_POLL_INTERVAL=60
- WATCHTOWER_CLEANUP=true
- TZ=Asia/Shanghai
command:
- devcontainer-nightly
- devcontainer
redis:
container_name: redis
image: redis:6.0.10
restart: always
network_mode: host
command: redis-server --appendonly yes
volumes:
- /data/redis:/data
ports:
- 6379:6379
mariadb:
container_name: mariadb
image: mariadb:10.4.19
restart: always
volumes:
- /data/mysql:/var/lib/mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=