-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (51 loc) · 942 Bytes
/
docker-compose.yaml
File metadata and controls
54 lines (51 loc) · 942 Bytes
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
---
version: "3.8"
services:
api:
image: redalegzali/restapi
build: restapi/
container_name: movie_api
restart: always
depends_on:
- database
ports:
- "8000:8000"
environment:
- HOST=database
- PORT=3306
- DATABASE=${db}
- DBUSER=${dbuser}
- PASSWORD=${dbpass}
networks:
- backend
volumes:
- images:/app/img
web:
image: redalegzali/webapp
build: webapp/
container_name: movie_app
ports:
- "80:80"
database:
image: mariadb
restart: always
container_name: movie_db
environment:
- MYSQL_ROOT_PASSWORD=${dbroot}
- MYSQL_DATABASE=${db}
- MYSQL_USER=${dbuser}
- MYSQL_PASSWORD=${dbpass}
ports:
- "3306"
networks:
- backend
volumes:
- data:/var/lib/mysql
networks:
backend:
driver: bridge
volumes:
data:
driver: local
images:
driver: local