-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
72 lines (70 loc) · 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
# DATABASE
db:
build: ./db
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASS}
# RADIUS
radius:
build: ./radius
restart: unless-stopped
depends_on:
- db
networks:
- webproxy
- default
ports:
- "1812:1812/udp"
- "1813:1813/udp"
environment:
RADIUS_DB_HOST: "db"
RADIUS_DB_NAME: ${DATABASE_NAME}
RADIUS_DB_USER: ${DATABASE_USER}
RADIUS_DB_PASS: ${DATABASE_PASS}
RADIUS_CLIENTS: ${RADIUS_CLIENTS}
RADIUS_AUTH_PORT: ${RADIUS_AUTH_PORT}
RADIUS_ACCT_PORT: ${RADIUS_ACCT_PORT}
# WEB
web:
build: ./php
restart: unless-stopped
depends_on:
- db
environment:
PORTAL_DB_HOST: "db"
PORTAL_DB_NAME: ${DATABASE_NAME}
PORTAL_DB_USER: ${DATABASE_USER}
PORTAL_DB_PASS: ${DATABASE_PASS}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
SMTP_CRYPTO: ${SMTP_CRYPTO}
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
ENDPOINT_LIMIT: ${ENDPOINT_LIMIT}
SPONSORCC: ${SPONSORCC}
UAM_SHARED_SECRET: ${UAM_SHARED_SECRET}
CI_ENCRYPTION_KEY: ${CI_ENCRYPTION_KEY}
SIPGATE_SMS_ID: ${SIPGATE_SMS_ID}
SIPGATE_ACCESS_TOKEN: ${SIPGATE_ACCESS_TOKEN}
networks:
- webproxy
- default
# ports:
# - "8000:80/tcp"
volumes:
- ./src/:/var/www/html/:ro
volumes:
db_data:
networks:
webproxy:
external: true