-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.34 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3"
services:
redis:
image: redis:7.0-alpine
hostname: redis
container_name: redis
ports:
- "6379:6379"
volumes:
- ./.docker/data:/data
networks:
- app-network
restart: always
client:
image: thuongtruong1009/onelink-client
container_name: client
build:
context: ./client
dockerfile: Dockerfile
env_file:
- ./client/.env.dev
ports:
- "3000:3000"
environment:
- NUXT_PUBLIC_API_BASE=http://localhost:81/s
volumes:
- ./client:/app/client
networks:
- app-network
restart: always
api:
image: thuongtruong1009/onelink-api
container_name: api
build:
context: ./api
dockerfile: Dockerfile
env_file:
- ./api/.env.dev
ports:
- "8080:8080"
environment:
- DOMAIN_RETURN=localhost:81/s
depends_on:
- redis
networks:
- app-network
volumes:
- ./api:/app/api
restart: always
nginx:
image: nginx:1.24-alpine
container_name: nginx
ports:
- "81:80"
volumes:
- ./:/usr/share/nginx/html
- ./:/var/www
- ./nginx:/var/log/nginx
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- api
- client
networks:
- app-network
restart: always
networks:
app-network:
driver: bridge