-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.03 KB
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
version: "3"
services:
contenedor_mysql:
image: mysql:5.7
container_name: mysql-container
environment:
MYSQL_DATABASE: app
MYSQL_USER: seper
MYSQL_PASSWORD: OasBOrESteNDOMen
MYSQL_ROOT_PASSWORD: OasBOrESteNDOMen
volumes:
- ./app/mysql:/var/lib/mysql
- ./app/app.sql:/docker-entrypoint-initdb.d/app.sql
expose:
- 3306
ports:
- 3306:3306
application:
build: ./app
container_name: web_app
expose:
- 80
ports:
- 80:80
volumes:
- web_app_vol:/var/www/html
environment:
JWT_SECRET: mustangs
database: app
db_user: seper
db_passwd: OasBOrESteNDOMen
db_host: contenedor_mysql
links:
- contenedor_mysql
app:
build: ./auth_api
ports:
- 8000:8000
depends_on:
- mongo
environment:
- MONGO_URI=mongodb://mongo:27017/
- JWT_SECRET=mustangs
mongo:
image: mongo:4
volumes:
- ./auth_api/data/db:/data/db
volumes:
web_app_vol:
driver: local