-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
70 lines (65 loc) · 1.43 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
services:
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
volumes:
- $DOCKER_CACHE_DIR/.github-action-cache/mongodb:/data/db
networks:
- mynetwork
registry:
image: registry:2
ports:
- "5000:5000"
volumes:
- ${DOCKER_CACHE_DIR}/.registry:/var/lib/registry
networks:
- mynetwork
runner:
image: tensorpod/actions-image:latest
restart: always
environment:
- REPO=tensor-works/pymimic3
- TOKEN=${ACCESS_TOKEN}
- DOCKER_CACHE_DIR=${DOCKER_CACHE_DIR}
- DOCKER_BUILDKIT=1
- MONGODB_HOST=mongodb://mongodb:27017
volumes:
- ${DOCKER_CACHE_DIR}:${DOCKER_CACHE_DIR}
deploy:
mode: replicated
replicas: 4
resources:
limits:
cpus: '3'
memory: 10G
reservations:
cpus: '2'
memory: 8G
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
depends_on:
- registry
- mongodb
networks:
- mynetwork
test:
image: tensorpod/actions-image:latest
volumes:
- ${DOCKER_CACHE_DIR}:${DOCKER_CACHE_DIR}
command: [ "/test_docker_daemon_access.sh" ]
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- registry
networks:
- mynetwork
volumes:
registry_data:
driver: local
networks:
mynetwork:
driver: bridge