This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
70 lines (63 loc) · 1.52 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "2.4"
services:
frontend:
depends_on:
- backend
build:
dockerfile: ./Dockerfile
context: ./renderer
ports:
- "3000:3000"
volumes:
- renderer-node-modules:/usr/src/app/node_modules
environment:
- AUTH_SERVICE_URL=http://host.docker.internal:8080
- DATA_PROVIDER_URL=http://host.docker.internal:8080
mysql:
container_name: "mysql_database"
image: mysql:8.0.31
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: db_example
ports:
- "3306:3306"
- "33060:33060"
# Uwaga! W przypadku błedu kontenera backendu
# należy poczekać aż kontener mysql zacznie działać,
# a następnie uruchomić kontener backednu jeszcze raz
# php_my_admin:
# container_name: "phpMyAdmin"
# depends_on:
# - mysql
# image: phpmyadmin:5
# environment:
# PMA_ARBITRARY: 1
# ports:
# - "8081:80"
# Aby zalogować się, należy wejść na stronę localhost:8081 i wpisać:
# Server: mysql
# User: root
backend:
depends_on:
- mysql
build:
dockerfile: ./backend/Dockerfile
ports:
- "8080:8080"
environment:
- AZURE_BLOB_ACCOUNT_KEY=
- AZURE_BLOB_ACCOUNT_NAME=studentcommunityimages
- AZURE_BLOB_CONTAINER=images
- AZURE_BLOB_ENDPOINT=
- MYSQL_HOST=
- DB_NAME=
- DB_PASS=
- DB_USER=
- GMAIL_PASS=
- GMAIL_USER=
- JWT_KEY=
volumes:
mysql-data:
renderer-node-modules: