-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.89 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
74
75
76
77
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
php-fpm:
build: phpdocker/php-fpm
container_name: srdd-php
working_dir: /application
volumes:
- .:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
webserver:
image: nginx:alpine
container_name: srdd-webserver
depends_on:
- php-fpm
working_dir: /application
volumes:
- .:/application
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "22222:80"
node:
image: "node:8"
container_name: srdd-node
depends_on:
- webserver
user: "node"
working_dir: /application
environment:
- NODE_ENV=production
volumes:
- ./:/application
expose:
- "8081"
command: "npm start"
mailhog:
image: mailhog/mailhog:latest
container_name: srdd-mailhog
depends_on:
- webserver
ports:
- "22223:8025"
mariadb:
image: mariadb:10.1
container_name: srdd-mariadb
depends_on:
- webserver
working_dir: /application
volumes:
- .:/application
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=app
- MYSQL_USER=simplon
- MYSQL_PASSWORD=simplon
ports:
- "22225:3306"
postgres:
image: postgres:9.6-alpine
container_name: srdd-postgre
depends_on:
- webserver
working_dir: /application
volumes:
- .:/application
environment:
- POSTGRES_USER=simplon
- POSTGRES_PASSWORD=simplon
- POSTGRES_DB=app