-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (59 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
66 lines (59 loc) · 1.15 KB
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
services:
cloud:
build: ./cloud
restart: always
depends_on:
- mongo
- redis
web:
build:
context: ./interface
dockerfile: web/Dockerfile
restart: always
mongo:
image: mongo:8
restart: always
ports:
- "127.0.0.1:27017:27017"
volumes:
- mongo:/data/db
redis:
image: redis:8
restart: always
volumes:
- redis:/data
nginx:
image: nginx:1
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- ./config/nginx/ssl/certs:/etc/ssl/certs/
- ./config/nginx/ssl/private:/etc/ssl/private
depends_on:
- cloud
- web
- code
code:
user: root
build:
context: .
dockerfile: tools/code/Dockerfile
restart: always
volumes:
- ./:/home/coder/project
- ~/.ssh:/root/.ssh
- ./config/code:/root/.config/code-server
- ./tools/code/data:/root/.local/share/code-server
environment:
- DOCKER_USER=root
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
mongo:
redis:
networks:
default:
name: spatial