-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
54 lines (52 loc) · 1.03 KB
/
docker-compose.dev.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
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
api:
restart: always
depends_on:
- mysql
container_name: api
image: lefantan/portfoliov2-backend
build:
context: ./api
dockerfile: Dockerfile.production
expose:
[3001]
environment:
NODE_ENV: production
GOOGLE_APPLICATION_CREDENTIALS: service-account.json
client:
restart: always
container_name: client
image: lefantan/portfoliov2-backend_client
build:
context: ./client
dockerfile: Dockerfile.production
expose:
[5000]
nginx:
restart: always
container_name: nginx
depends_on:
- api
- client
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "443:443"
mysql:
image: mysql:8.0.27
container_name: mysql
volumes:
# persist data
- data-volume:/var/lib/mysql
restart: always
cap_add:
- SYS_NICE
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: portfolio
ports:
- "3306:3306"
volumes:
data-volume: