-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 980 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
services:
frontend:
build:
context: ./obligatorio-bd2-2024-client
ports:
- "8080:80"
depends_on:
- backend
backend:
build:
context: ./obligatorio-bd2-2024-server
ports:
- "3000:3000"
env_file: ./.env
environment:
- PORT=3000
- DB_HOST=database
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- MAILER_SERVICE=${MAILER_SERVICE}
- MAILER_EMAIL=${MAILER_EMAIL}
- MAILER_SECRET_KEY=${MAILER_SECRET_KEY}
- SECRETKEY=${SECRETKEY}
depends_on:
- database
database:
image: mysql
ports:
- "3306:3306"
env_file: ./.env
environment:
LANG: C.utf8
LC_ALL: C.utf8
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
volumes:
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
command:
[--character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]