-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
73 lines (73 loc) · 2.08 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
66
67
68
69
70
71
72
73
version: '3'
services:
nginx:
image: nginx
volumes:
- ./hosts:/etc/nginx/conf.d
- ./www:/var/www
- ./logs:/var/log/nginx
ports:
- 80:80
- "443:443"
restart: always
depends_on:
- php
- postgres
- mysql
php:
build: ./images/php
restart: always
volumes:
- ./images/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./images/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./www:/var/www
- ~/.local/share/fish:/home/user/.local/share/fish
- ~/.config/fish:/home/user/.config/fish
- ~/.git-credentials:/home/user/.git-credentials
- ~/.gitconfig:/home/user/.gitconfig
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- 5432:5432
volumes:
- ./db/initdb/:/docker-entrypoint-initdb.d/
- ./db/data/:/var/lib/postgresql/data
- ./logs:/var/log/postgresql/
adminer:
image: adminer
restart: always
ports:
- 8080:8080
depends_on:
- postgres
- mysql
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
ports:
- 3306:3306
volumes:
- ./db/initdb/:/docker-entrypoint-initdb.d/
- ./db/mysql:/var/lib/mysql
- ./logs:/var/log/mysql/
node:
image: node:14.18.3-alpine3.15
container_name: node
restart: always
working_dir: /app
stdin_open: true
ports:
- 3000:3000
volumes:
- ./frontend/:/app/