forked from nilsteampassnet/TeamPass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 963 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
34
35
36
37
38
39
40
41
42
43
44
45
version: "3"
services:
nginx:
image: jwilder/nginx-proxy:alpine
restart: unless-stopped
networks:
- frontend
- backend
ports:
- "443:443"
volumes:
- ./ssl:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock:ro
teampass-web:
build: .
#image: teampass/teampass
restart: unless-stopped
environment:
VIRTUAL_HOST: YOUR_HOSTNAME
VIRTUAL_PORT: 80
CERT_NAME: YOUR_CERTIFICATE
volumes:
- ./teampass-html:/var/www/html
networks:
- teampass-internal
- backend
db:
restart: unless-stopped
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: YOUR_SUPERSECRET_PASSWORD
MYSQL_DATABASE: teampass
MYSQL_PASSWORD: YOUR_SECRET_PASSWORD
MYSQL_USER: teampass
volumes:
- ./teampass-db:/var/lib/mysql
networks:
- teampass-internal
networks:
frontend:
backend:
external: true
teampass-internal: