forked from Haxxnet/Compose-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.43 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
version: '3.1'
services:
yourls:
image: yourls:latest
container_name: yourls
restart: unless-stopped
ports:
- 8080:80
expose:
- 80
environment:
YOURLS_SITE: https://myyourls.example.com # please adjust to your domain
YOURLS_USER: yourls-admin # please adjust
YOURLS_PASS: very-secury-admin-password # please adjust
YOURLS_DB_HOST: mysql
YOURLS_DB_USER: yourls
YOURLS_DB_NAME: yourls
YOURLS_DB_PASS: very-secure-database-password # please adjust
volumes:
- ./security.conf:/etc/apache2/conf-enabled/security.conf:ro
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.http.routers.yourls.rule=Host(`s.ptf.one`)
# - traefik.http.services.yourls.loadbalancer.server.port=80
# - traefik.docker.network=proxy
# # Part for optional traefik middlewares
# - traefik.http.routers.CHANGEME.middlewares=local-ipwhitelist@file,authelia@docker
mysql:
image: mysql:latest
container_name: yourls-db
restart: unless-stopped
environment:
MYSQL_DATABASE: yourls
MYSQL_USER: yourls
MYSQL_PASSWORD: very-secure-database-password # please adjust
MYSQL_ROOT_PASSWORD: very-secure-database-root-password # please adjust
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/yourls/mysql:/var/lib/mysql
#networks:
# - proxy
#networks:
# proxy:
# external: true