2019-03-05 15:39:45 +03:00
|
|
|
version: '3'
|
2017-01-20 00:56:45 +03:00
|
|
|
|
|
|
|
services:
|
|
|
|
shlink_nginx:
|
|
|
|
container_name: shlink_nginx
|
2020-04-25 14:44:09 +03:00
|
|
|
image: nginx:1.17.10-alpine
|
2017-01-20 00:56:45 +03:00
|
|
|
ports:
|
|
|
|
- "8000:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
2017-01-21 22:12:12 +03:00
|
|
|
- ./docs:/home/shlink/www/public/docs
|
2019-03-05 15:39:45 +03:00
|
|
|
- ./data/infra/vhost.conf:/etc/nginx/conf.d/default.conf
|
2017-01-20 00:56:45 +03:00
|
|
|
links:
|
|
|
|
- shlink_php
|
|
|
|
|
|
|
|
shlink_php:
|
|
|
|
container_name: shlink_php
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/php.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/php.ini:/usr/local/etc/php/php.ini
|
|
|
|
links:
|
|
|
|
- shlink_db
|
2019-03-05 15:39:45 +03:00
|
|
|
- shlink_db_postgres
|
2019-10-06 12:21:41 +03:00
|
|
|
- shlink_db_maria
|
2020-02-03 23:20:40 +03:00
|
|
|
- shlink_db_ms
|
2019-08-07 17:07:40 +03:00
|
|
|
- shlink_redis
|
2020-03-14 21:47:22 +03:00
|
|
|
- shlink_mercure
|
2020-04-25 14:44:09 +03:00
|
|
|
- shlink_mercure_proxy
|
2020-02-15 22:28:32 +03:00
|
|
|
environment:
|
|
|
|
LC_ALL: C
|
2017-01-20 00:56:45 +03:00
|
|
|
|
2020-05-02 13:04:42 +03:00
|
|
|
shlink_swoole_proxy:
|
|
|
|
container_name: shlink_swoole_proxy
|
|
|
|
image: nginx:1.17.10-alpine
|
|
|
|
ports:
|
|
|
|
- "8002:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/swoole_proxy_vhost.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
links:
|
|
|
|
- shlink_swoole
|
|
|
|
|
2018-11-24 10:43:48 +03:00
|
|
|
shlink_swoole:
|
|
|
|
container_name: shlink_swoole
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/swoole.Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2019-11-01 11:52:56 +03:00
|
|
|
- "9001:9001"
|
2018-11-24 10:43:48 +03:00
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink
|
2019-12-17 23:20:24 +03:00
|
|
|
- ./data/infra/php.ini:/usr/local/etc/php/php.ini
|
2018-11-24 10:43:48 +03:00
|
|
|
links:
|
|
|
|
- shlink_db
|
2019-03-05 15:39:45 +03:00
|
|
|
- shlink_db_postgres
|
2019-10-06 12:21:41 +03:00
|
|
|
- shlink_db_maria
|
2020-02-03 23:20:40 +03:00
|
|
|
- shlink_db_ms
|
2019-08-07 17:07:40 +03:00
|
|
|
- shlink_redis
|
2020-03-14 21:47:22 +03:00
|
|
|
- shlink_mercure
|
2020-04-25 14:44:09 +03:00
|
|
|
- shlink_mercure_proxy
|
2020-02-03 23:20:40 +03:00
|
|
|
environment:
|
|
|
|
LC_ALL: C
|
2018-11-24 10:43:48 +03:00
|
|
|
|
2017-01-20 00:56:45 +03:00
|
|
|
shlink_db:
|
|
|
|
container_name: shlink_db
|
2019-03-05 15:39:45 +03:00
|
|
|
image: mysql:5.7
|
2017-01-20 00:56:45 +03:00
|
|
|
ports:
|
|
|
|
- "3307:3306"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: shlink
|
2019-03-05 15:39:45 +03:00
|
|
|
|
|
|
|
shlink_db_postgres:
|
|
|
|
container_name: shlink_db_postgres
|
|
|
|
image: postgres:10.7-alpine
|
|
|
|
ports:
|
|
|
|
- "5433:5432"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database_pg:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: root
|
|
|
|
POSTGRES_DB: shlink
|
|
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
2019-08-07 17:07:40 +03:00
|
|
|
|
2019-10-06 12:21:41 +03:00
|
|
|
shlink_db_maria:
|
|
|
|
container_name: shlink_db_maria
|
|
|
|
image: mariadb:10.2
|
|
|
|
ports:
|
|
|
|
- "3308:3306"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database_maria:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: shlink
|
2019-10-20 10:53:11 +03:00
|
|
|
MYSQL_INITDB_SKIP_TZINFO: 1
|
2019-10-06 12:21:41 +03:00
|
|
|
|
2020-02-03 23:20:40 +03:00
|
|
|
shlink_db_ms:
|
|
|
|
container_name: shlink_db_ms
|
|
|
|
image: mcr.microsoft.com/mssql/server:2019-latest
|
|
|
|
ports:
|
|
|
|
- "1433:1433"
|
|
|
|
environment:
|
|
|
|
ACCEPT_EULA: Y
|
|
|
|
SA_PASSWORD: "Passw0rd!"
|
|
|
|
|
2019-08-07 17:07:40 +03:00
|
|
|
shlink_redis:
|
|
|
|
container_name: shlink_redis
|
|
|
|
image: redis:5.0-alpine
|
|
|
|
ports:
|
|
|
|
- "6380:6379"
|
2020-03-14 21:47:22 +03:00
|
|
|
|
2020-04-25 14:44:09 +03:00
|
|
|
shlink_mercure_proxy:
|
|
|
|
container_name: shlink_mercure_proxy
|
|
|
|
image: nginx:1.17.10-alpine
|
|
|
|
ports:
|
|
|
|
- "8001:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/mercure_proxy_vhost.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
links:
|
|
|
|
- shlink_mercure
|
|
|
|
|
2020-03-14 21:47:22 +03:00
|
|
|
shlink_mercure:
|
|
|
|
container_name: shlink_mercure
|
|
|
|
image: dunglas/mercure:v0.8
|
|
|
|
ports:
|
|
|
|
- "3080:80"
|
|
|
|
environment:
|
|
|
|
CORS_ALLOWED_ORIGINS: "*"
|
2020-04-12 13:21:05 +03:00
|
|
|
JWT_KEY: "mercure_jwt_key"
|
2020-04-25 14:44:09 +03:00
|
|
|
USE_FORWARDED_HEADERS: "1"
|