-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (65 loc) · 1.28 KB
/
docker-compose.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.1"
services:
nginx:
image: nginx:alpine
restart: always
ports:
- "80:80"
volumes:
- ./frontend:/srv/www/static
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- nodejs
- mysql
- pg
nodejs:
image: node:alpine
environment:
NODE_ENV: production
working_dir: /home/app
restart: always
ports:
- "3000:3000"
volumes:
- ./nestjs:/home/app
command: ["npm", "run", "start:dev"]
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: laravel
MYSQL_USER: mysqluser
MYSQL_PASSWORD: password
ports:
- "3309:3306"
volumes:
- mysql-data:/var/lib/mysql
restart: always
php:
image: webdevops/php-apache-dev:8.2
volumes:
- ./laravel:/app
environment:
WEB_DOCUMENT_ROOT: /app/public
pg:
image: postgres:latest
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: password
POSTGRES_DB: nestjs
ports:
- "5432:5432"
restart: always
volumes:
- pg-data:/var/lib/postgresql/data
adminer:
image: adminer
depends_on:
- pg
restart: always
ports:
- 8080:8080
volumes:
pg-data:
mysql-data: