-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 933 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 933 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
version: "2"
networks:
xtbfront-net:
driver: bridge
services:
xtbfront-api:
build:
context: ./back/xtbfront
dockerfile: Dockerfile
restart: always
container_name: xtbfront-api
expose:
- "4000"
env_file: .xtbfront-api.env
networks:
- xtbfront-net
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST_API}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST_API}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
VIRTUAL_PORT: 4000
xtbfront-web:
build:
context: ./front
dockerfile: Dockerfile
restart: always
container_name: xtbfront-web
expose:
- "80"
volumes:
- ./front/public/config.env.js:/usr/share/nginx/html/config.env.js
networks:
- xtbfront-net
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST_WEB}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST_WEB}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
VIRTUAL_PORT: 80