forked from sajalagrawal/LifestyleStore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 759 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 759 Bytes
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
version: '3'
services:
mysql: #name of service
image: mysql-storedb:latest
container_name: store_db
env_file:
- 'variables.env'
ports:
- "3306:3306"
networks:
- store
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
php:
image: php-lifestylestore:latest
container_name: store
ports:
- "8080:80"
env_file:
- 'variables.env'
networks:
- store
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
networks:
store:
name: store
x-variables: &variables
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: store
MYSQL_USER: store
MYSQL_PASSWORD: password
MYSQL_HOST: mysql #name of service