-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.86 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
48
49
50
51
52
53
54
55
56
57
version: "3.7"
services:
web:
image: nginx:1.16.1
ports:
- "81:80"
volumes:
- "./example.nginx.conf:/etc/nginx/conf.d/default.conf"
- "./frontend:/var/www/html:ro"
labels:
traefik.http.routers.http-1.rule: Host(`http-1.localhost`)
webservice:
# replace username/repo:tag with your name and image details
#image:
# build: ./server
build:
dockerfile: Dockerfile
context: ./server
# target: development
target: production
args:
MICROSCANNER_TOKEN: MjIzMTU3ZWQ0NzQy
volumes:
- "./server:/app"
ports:
- "3000:3000"
# env_file:
# - ./server/.env.development
networks:
- webnet
traefik:
image: traefik:v2.0.4
command:
- --log.level=INFO
- --providers.docker
- --api.insecure=true
- --entrypoints.web.address=:80
- --certificatesResolvers.sample.acme.email=your-email@your-domain.org
- --certificatesResolvers.sample.acme.storage=acme.json
# comment next line for production servers
- --certificatesResolvers.sample.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory
- --certificatesResolvers.sample.acme.keyType=RSA8192
- --certificatesResolvers.sample.acme.tlsChallenge=true
- --certificatesResolvers.sample.acme.httpChallenge=true
# used during the challenge
- --certificatesResolvers.sample.acme.httpChallenge.entryPoint=web
- --certificatesResolvers.sample.acme.dnsChallenge=true
- --certificatesResolvers.sample.acme.dnsChallenge.provider=digitalocean
- --certificatesResolvers.sample.acme.dnsChallenge.delayBeforeCheck=0
- --certificatesResolvers.sample.acme.dnsChallenge.resolvers=1.1.1.1:53,8.8.8.8:53
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "8080:8080"
networks:
webnet: