-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
49 lines (48 loc) · 964 Bytes
/
docker-compose.prod.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
version: '3.7'
services:
workspace:
build:
context: .
dockerfile: docker/prod/node/Dockerfile
image: nest_workspace
restart: on-failure
container_name: nest_workspace
ports:
- ${PORT}:${PORT}
env_file:
- .env
volumes:
- ./:/usr/src/app
networks:
- internal
tty: true
stdin_open: true
mysql:
image: mysql:8.0
restart: always
container_name: nest-mysql
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${DATABASE_DB_NAME}
MYSQL_USER: ${DATABASE_USERNAME}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "3306:3306"
volumes:
- .mysql-data:/var/lib/mysql
networks:
- internal
adminer:
image: adminer:latest
container_name: nest-adminer
restart: always
ports:
- 8080:8080
networks:
- internal
networks:
internal:
name: internal
driver: bridge