forked from SwagXz/encrypt-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 930 Bytes
/
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
services:
nginx:
image: nginx:latest
container_name: encrypt_labs_nginx
ports:
- "82:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./src:/var/www/html
depends_on:
- php
networks:
- app-network
php:
build:
context: ./php
container_name: encrypt_labs_php
volumes:
- ./src:/var/www/html
networks:
- app-network
mysql:
image: mysql:5.7
container_name: encrypt_labs_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: your_root_password
MYSQL_DATABASE: encrypt_labs_db
MYSQL_USER: encrypt_user
MYSQL_PASSWORD: encrypt_password
volumes:
- db_data:/var/lib/mysql
- ./src/encryptDB.sql:/docker-entrypoint-initdb.d/encryptDB.sql
ports:
- "3306:3306"
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
db_data: