-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
63 lines (60 loc) · 1.4 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
version: '2'
services:
appdata:
image: tianon/true
volumes:
- ./webroot:/var/www/html
mysql:
build: ./mysql
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/conf:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: opencart
MYSQL_USER: opencart
MYSQL_PASSWORD: opencart
app:
build:
context: ./apache-php
args:
DOMAIN_NAME: localhost
ports:
- "80:80"
- "443:443"
volumes_from:
- appdata
volumes:
- ./apache-php/logs:/var/log/apache2
links:
- mysql
environment:
DOMAIN_NAME: localhost
XDEBUG_CONFIG: remote_host=172.19.0.1
setup:
build:
context: ./apache-php
args:
DOMAIN_NAME: localhost
command: /usr/local/bin/app-setup
links:
- mysql
volumes_from:
- appdata
environment:
DOMAIN_NAME: localhost
SETUP_DB_HOST: mysql
SETUP_DB_NAME: opencart
SETUP_DB_USER: opencart
SETUP_DB_PASSWORD: opencart
SETUP_SECURE: 'false'
SETUP_BASE_URL: http://localhost/
SETUP_BASE_SECURE_URL: https://localhost/
SETUP_BACKEND_NAME: admin_test
SETUP_ADMIN_EMAIL: dummy@gmail.com
SETUP_ADMIN_USER: admin
SETUP_ADMIN_PASSWORD: admin123
SETUP_VERSION: 2.3.0.2
SETUP_USE_ARCHIVE: 'true'