-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
65 lines (62 loc) · 1.61 KB
/
docker-compose.dev.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
version: "3.4"
x-app-variables: &app-variables
APP_URL: "http://localhost"
DEBUG: 0
DATABASE_ADAPTER: "Mysql"
DATABASE_HOST: "mysql"
DATABASE_USERNAME: "bonuz"
DATABASE_PASSWORD: "bonuz"
DATABASE_DBNAME: "bonuz"
MAIL_FROM_NAME: "bonuz @zeolabs"
MAIL_FROM_EMAIL: "example@gmail.com"
MAIL_SERVER: "smtp.example.com"
MAIL_PORT: "465"
MAIL_SECURITY: "ssl"
MAIL_USERNAME: "example@gmail.com"
MAIL_PASSWORD: mailpassword
MAIL_DISABLED: 1
DISCORD_DISABLED: 1
DISCORD_SECRET: "64aaba56c4c104594f50d3932780462929b77ceb"
DISCORD_WEBHOOK: "https://discord.com/api/webhooks/..."
services:
app:
build:
context: .
args:
USER_ID: 1000 # Set this to the user id of the user that runs docker-compose
GROUP_ID: 1000 # Set this to the group id of the user that runs docker-compose
networks:
- app
environment: *app-variables
volumes:
- ./:/var/www/html
ports:
- 80:80
- 443:443
app-cron:
build:
dockerfile: 'Dockerfile-cron'
context: .
args:
USER_ID: 1000 # Set this to the user id of the user that runs docker-compose
GROUP_ID: 1000 # Set this to the group id of the user that runs docker-compose
networks:
- app
environment: *app-variables
mysql:
depends_on:
- app
image: mysql:5.7
volumes:
- db:/var/lib/mysql
networks:
- app
environment:
MYSQL_ROOT_PASSWORD: "bonuz"
MYSQL_USER: "bonuz"
MYSQL_PASSWORD: "bonuz"
MYSQL_DATABASE: "bonuz"
volumes:
db:
networks:
app: