-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
50 lines (48 loc) · 999 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
49
50
version: '3.7'
services:
php-apache:
container_name: psalm-php
build:
context: .
dockerfile: Dockerfile
hostname: psalm-php
init: true
ports:
- "8080:80"
volumes:
- type: "bind"
source: "${PWD}"
target: "/var/www/html"
depends_on:
- db
networks:
- backend
db:
container_name: psalm-sql
image: mysql/mysql-server:5.6
volumes:
- type: "bind"
source: "${PWD}/codes.sql"
target: "/docker-entrypoint-initdb.d/setup-docker-mysql.sql"
ports:
- "6512:3306"
environment:
MYSQL_ROOT_PASSWORD: docker_root_pass
MYSQL_DATABASE: test_db
MYSQL_USER: devuser
MYSQL_PASSWORD: devpass
networks:
- backend
node:
container_name: node
image: "node:19"
user: "node"
working_dir: /home/node/app
environment:
- NODE_ENV=development
volumes:
- ./:/home/node/app
networks:
- backend
networks:
backend: