-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.31 KB
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
version: "3.8"
services:
ariefid-apps:
restart: unless-stopped
tty: true
ports:
- $NODE_LOCAL_PORT:$NODE_DOCKER_PORT
env_file: ./.env
environment:
MYSQL_HOST: ariefid-db
MYSQL_PORT: $MYSQL_PORT
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_DBNAME: $MYSQL_DBNAME
NODE_DOCKER_PORT: $NODE_DOCKER_PORT
SERVICE_NAME: ariefid-apps
SERVICE_TAGS: ariefid,nodejs,apps
networks:
- ariefid-network
build:
context: ./apps
dockerfile: Dockerfile
depends_on:
- ariefid-db
ariefid-db:
image: mysql:8.0
restart: unless-stopped
tty: true
ports:
- $MYSQL_PORT:$MYSQL_PORT
env_file: ./.env
environment:
MYSQL_DATABASE: $MYSQL_DBNAME
MYSQL_ROOT_PASSWORD: $MYSQL_PASSWORD
SERVICE_NAME: ariefid-db
SERVICE_TAGS: ariefid,mysql,database
volumes:
- ariefid-db-data:/var/lib/mysql/
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
- ariefid-network
networks:
ariefid-network:
driver: bridge
volumes:
ariefid-db-data:
driver: local