-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
50 lines (49 loc) · 1.29 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
version: "3.8"
services:
nginx:
build:
context: .
dockerfile: ./docker/nginx.Dockerfile
image: 999999999999.dkr.ecr.us-east-1.amazonaws.com/laravel:nginx
restart: always
depends_on:
- php
ports:
- "80"
networks:
- default
deploy:
replicas: 1
resources:
limits:
# cpus: "0.50"
memory: 50M
reservations:
# cpus: "0.25"
memory: 30M
restart_policy:
condition: any
delay: 5s
window: 120s
php:
build:
context: .
dockerfile: ./docker/php.Dockerfile
image: 999999999999.dkr.ecr.us-east-1.amazonaws.com/laravel:php
working_dir: /app
env_file: .env
restart: always
expose:
- "9000"
deploy:
replicas: 1
resources:
limits:
# cpus: "0.50"
memory: 128M
reservations:
# cpus: "0.25"
memory: 64M
restart_policy:
condition: any
window: 120s