-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
55 lines (50 loc) · 1.16 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
version: '3'
services:
sleekwaredb-api:
container_name: swdb-api
build:
context: ./backend/
restart: unless-stopped
tty: true
working_dir: /var/www/html
volumes:
- ./backend/:/var/www/html
- ./backend/.docker/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
networks:
- sleekwaredb-network
sleekwaredb-nginx:
container_name: swdb-nginx
image: nginx:alpine
volumes:
- ./backend/:/var/www/html
- ./backend/.docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
restart: unless-stopped
tty: true
ports:
- "${BACKEND_PORT}:80"
networks:
- sleekwaredb-network
sleekwaredb-composer:
container_name: swdb-composer
image: composer:latest
volumes:
- ./backend:/var/www/html
working_dir: /var/www/html
networks:
- sleekwaredb-network
sleekwaredb-frontend:
container_name: swdb-app
build:
context: ./frontend/
restart: unless-stopped
tty: true
working_dir: /app
volumes:
- ./frontend/:/app
ports:
- "3001:3000"
networks:
- sleekwaredb-network
networks:
sleekwaredb-network:
external: true