-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.22 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
version: "2.4"
services:
php:
build: ./docker/php8
image: docker_ide_php
cap_drop: [all]
cap_add: [chown, setgid, setuid, kill]
volumes:
- ./:/var/www
networks:
- backend
restart: unless-stopped
stop_grace_period: 30s
stop_signal: SIGQUIT
nginx:
image: nginx:stable-alpine
cap_drop: [all]
cap_add: [chown, setuid, setgid, dac_override, net_bind_service]
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- backend
restart: unless-stopped
code-server:
build:
context: ./docker/code-server
args: [UID]
cap_drop: [all]
userns_mode: "host"
volumes:
- ./:/var/www
- ./bin:/usr/local/sbin
- ./docker/code-server/settings.json:/config/.local/share/code-server/User/settings.json
- ./docker/code-server/tasks.json:/config/.local/share/code-server/User/tasks.json
- ./docker/code-server/keybindings.json:/config/.local/share/code-server/User/keybindings.json
- ./docker/code-server/launch.json:/var/www/.vscode/launch.json
ports:
- "127.0.0.1:8000:8000"
networks:
- backend
networks:
backend:
driver: bridge