-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·44 lines (41 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
executable file
·44 lines (41 loc) · 1.07 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
version: '2'
services:
mariadb:
build: ./db
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: openemis
MYSQL_USER: my_user
MYSQL_PASSWORD: my_password
ports:
- 3307:3306
command: '--sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION --max_allowed_packet=32505856'
myapp:
build: ./bulk-upload
environment:
- DB_HOST=mariadb
- DB_USERNAME=my_user
- DB_DATABASE=openemis
- DB_PASSWORD=my_password
depends_on:
- mariadb
ports:
- 3001:3000
volumes:
- ./:/app
restart: always
nsis-nginx:
build: ./nginx
container_name: nsis-nginx
ports:
- "8080:80"
links:
- nsis-php-fpm
restart: always
nsis-php-fpm:
build: ./php-fpm
volumes:
- ./php-fpm/app:/var/www/myapp
- ./php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini
container_name: nsis-php-fpm
# privileged: true # Privileged mode could be required to run this container under Windows