-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 894 Bytes
/
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
services:
devcontainer:
build:
context: .
dockerfile: .devcontainer/Dockerfile
# Loop to not get down
command: /bin/sh -c "while sleep 1000; do :; done"
# start nginx
# command: /usr/sbin/nginx -g "daemon off;"
working_dir: /workspace
container_name: devcontainer
init: true
ports:
- "3000:3000"
# INFO: auskommentieren, sobald "local" Ordner existiert
# env_file: ./local/.env
volumes:
# sync workspace
- .:/workspace:cached
# sync nginx files
- ./nginx/src/:/usr/share/nginx/html
- ./nginx/default:/etc/nginx/sites-available/default
# INFO: auskommentieren, sobald "local" Ordner existiert
# - ./local/aws:/root/.aws
# - ./local/ssh/id_rsa.pem:/root/.ssh/id_rsa.pem
production:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "3001:3000"