-
Notifications
You must be signed in to change notification settings - Fork 204
/
docker-compose.yaml
48 lines (45 loc) · 1002 Bytes
/
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
version: '3.7'
services:
traduora:
image: everco/ever-traduora:latest
container_name: traduora
build:
context: .
dockerfile: Dockerfile
args:
NODE_ENV: ${NODE_ENV:-development}
ports:
- '8080:8080'
environment:
TR_DB_TYPE: mysql
TR_DB_USER: tr
TR_DB_PASSWORD: change_me
TR_DB_DATABASE: tr_dev
TR_DB_HOST: mysqldb
TR_DB_PORT: 3306
NODE_ENV: ${NODE_ENV:-development}
entrypoint: './docker-entrypoint.compose.sh'
restart: on-failure
depends_on:
- mysqldb
links:
- mysqldb:${TR_DB_HOST:-mysqldb}
networks:
- overlay
mysqldb:
image: mysql:5.7
container_name: mysqldb
restart: always
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: tr_dev
MYSQL_USER: tr
MYSQL_PASSWORD: change_me
MYSQL_ROOT_PASSWORD: root
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
networks:
- overlay
networks:
overlay:
driver: bridge