-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.production.yml
64 lines (57 loc) · 1.31 KB
/
docker-compose.production.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
version: '3'
services:
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
volumes:
- ./development/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- application-network
composer:
container_name: composer
image: composer
command: /bin/bash "/app/commands/production/start-composer.sh"
volumes:
- ./:/app
networks:
- application-network
npm:
container_name: npm
image: node:14.1.0-slim
command: /bin/bash "/var/www/commands/production/start-npm.sh"
volumes:
- ./:/var/www
networks:
- application-network
nginx:
container_name: nginx
image: nginx:alpine
ports:
- 80:80
volumes:
- ./:/var/www
- ./production/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- application-network
database:
image: mysql:8.0
container_name: database
command: --default-authentication-plugin=mysql_native_password
ports:
- 3306:3306
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: password
volumes:
- data:/var/lib/mysql
- ./production/mysql/my.conf:/etc/mysql/my.conf
networks:
- application-network
networks:
application-network:
driver: bridge
volumes:
data:
driver: local