forked from bagisto/bagisto-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 1.08 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
version: '3'
services:
web_server:
image: webkul/apache-php:7.2
container_name: apache2
restart: always
volumes:
- ./app:/var/www/html
working_dir: /var/www/html/
environment:
USER_UID: 'mention your system user ID here. ex: 1001, 1000, 33, etc'
networks:
- bagisto-network
ports:
- '80:80'
expose:
- '80'
depends_on:
- database_server
links:
- database_server
database_server:
image: mysql:5.7
container_name: mysql
restart: always
environment:
MYSQL_DATABASE: 'mention the name of the database to be created here. eg: mydatabase'
MYSQL_USER: 'mention database user here. eg: mydatabase_user'
MYSQL_PASSWORD: 'mention database user password here. ex: mystrongPassword'
MYSQL_ROOT_PASSWORD: 'mention mysql root password here. ex: mysqlstrongpass'
MYSQL_ROOT_HOST: '%'
networks:
- bagisto-network
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- ./dbvolume:/var/lib/mysql
volumes:
dbvolume:
app:
networks:
bagisto-network: