-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (55 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
61 lines (55 loc) · 1.77 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
services:
fusionstrings-unit:
image: nginx/unit:1.22.0-minimal
restart: unless-stopped
volumes:
- ../.unit/config-app.json:/docker-entrypoint.d/config.json:ro
- ../public/:/var/www/public/:ro
- ../src/app.js:/var/www/app.js
#command: ["chmod", "+x", "/var/www/app.js"]
ports:
- 80:80
- 443:443
- 8080:8080
expose:
- "80"
- "443"
- "8080"
fusionstrings-app:
build:
context: .
dockerfile: Dockerfile
# args:
# # On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
# USER_UID: 1000
# USER_GID: 1000
init: true
volumes:
# Forwards the local Docker socket to the container.
- /var/run/docker.sock:/var/run/docker-host.sock
# Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspace:cached
# Overrides default command so things don't shut down after the process ends.
entrypoint: /usr/local/share/docker-init.sh
command: sleep infinity
network_mode: service:fusionstrings-unit
secrets:
- api_key_file
- api_key_external
environment:
- API_KEY=/run/secrets/api_key_file
env_file: ../.env
secrets:
api_key_file:
file: ../.secrets/api.txt
api_key_external:
external: true
# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
# cap_add:
# - SYS_PTRACE
# security_opt:
# - seccomp:unconfined
# Uncomment the next line to use a non-root user for all processes.
# user: vscode
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)