-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.18 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
node-js-server:
build:
context: ./server/nodejs/
ports:
- "2021:2021"
- "2020:2020"
environment:
NODE_ENV: production
DB_HOST: host.docker.internal
DB_USER: root
DB_NAME: amalgam
DB_PASSWORD: secret
PORT: 3306
depends_on:
- mysql
networks:
- amalgam-network
php-apache:
build:
context: ./server/php/
dockerfile: php-apache.dockerfile
ports:
- 8888:80
volumes:
- ./server/php:/var/www/html
depends_on:
- mysql
networks:
- amalgam-network
mysql:
image: mariadb:10.6
ports:
- 3306:3306
environment:
MYSQL_DATABASE: amalgam
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
volumes:
- mysql_data:/var/lib/mysql
- ./database:/docker-entrypoint-initdb.d
networks:
- amalgam-network
nginx:
image: nginx:latest
ports:
- 80:80
volumes:
- ./server/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- php-apache
- node-js-server
networks:
- amalgam-network
volumes:
mysql_data:
networks:
amalgam-network:
driver: bridge