-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.17 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
version: '3.1'
services:
database:
image: mysql:5.7.23
container_name: database
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
expose:
- 3306
ports:
- 3306:3306
environment:
- MYSQL_USER=developer
- MYSQL_PASSWORD=my-secret-password
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=facturacion-electronica
proxy:
image: nginx:1.15
container_name: proxy
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 9000:9000
expose:
- 9000
session:
image: redis:4
container_name: session
restart: always
ports:
- 6379:6379
expose:
- 6379
webapp:
image: facturacion-electronica:latest
container_name: webapp
restart: always
env_file:
- server/.env
ports:
- 4000:4000
depends_on:
- session
- database