forked from kobrien603/PizzaApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (76 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
80 lines (76 loc) · 1.79 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
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
78
79
80
version: '3.9'
services:
db:
image: mysql:8.0
container_name: pizzaapp.db
restart: always
environment:
- MYSQL_DATABASE=pizza
- MYSQL_USER=pizzaadmin
- MYSQL_PASSWORD=&Naa4F4uRT2F@Wu5Xu^dLz!5m!Z5DB
- MYSQL_ROOT_PASSWORD=tbRPyVKyyan$&g5cB^%RrVkeWjyBTH
ports:
- '3306:3306'
#volumes:
# - ./Volumes/database:/var/lib/mysql
networks:
- my_network
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: redis:7.0.5
container_name: pizzaapp.redis
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass JELDuAuFvBg34gfeAs95ww5c68wwn7
api:
image: pizzaapp.server
container_name: pizzaapp.server
restart: always
depends_on:
- db
- redis
links:
- db
- redis
environment:
NODE_ENV: local
DB_HOST: db
DB_PORT: 3306
DB_USER: pizzaadmin
DB_PASSWORD: '&Naa4F4uRT2F@Wu5Xu^dLz!5m!Z5DB'
DB_NAME: pizza
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: JELDuAuFvBg34gfeAs95ww5c68wwn7
build:
context: .
args:
- ASPNETCORE_URLS=http://+:80
- ASPNETCORE_ENVIRONMENT=Development
dockerfile: ./PizzaApp.Server/Dockerfile
ports:
- "5000:80"
networks:
- my_network
nginx:
image: nginx:latest
container_name: pizzaapp.nginx
ports:
- "80:80"
- "443:443"
depends_on:
- api
links:
- api
environment:
- NGINX_SSL_PASSWORD=pizza
volumes:
- ./Volumes/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./Volumes/nginx/cert.pem:/etc/nginx/cert.pem
- ./Volumes/nginx/localhost.key:/etc/nginx/localhost.key
networks:
- my_network
networks:
my_network: