-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (47 loc) · 947 Bytes
/
docker-compose.yaml
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.3"
volumes:
db:
driver:
local
services:
app:
build:
context: ./
dockerfile: Dockerfile
image: what-to-do_image
container_name: What-To-Do
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- todoApp-network
db:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_DATABASE: todoApp-db
MYSQL_ROOT_PASSWORD: pass
MYSQL_PASSWORD: pass
MYSQL_USER: root
ports:
- "3306:3306"
volumes:
- ./data:/docker-entrypoint-initdb.d
- db:/var/lib/mysql
networks:
- todoApp-network
nginx:
image: nginx:alpine
container_name: todoApp-nginx
restart: unless-stopped
ports:
- 443:80
volumes:
- ./:/var/www
- ./nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- todoApp-network
networks:
todoApp-network:
driver: bridge