-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.42 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
version: "3.7"
services:
### Laravel Container
wcos-backend:
image: wcos/marketplace-backend:latest
container_name: wcos-backend
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- wcos-network
### Database Container (Mysql)
wcos-db:
image: mysql:5.7
container_name: wcos-db
restart: unless-stopped
environment:
MYSQL_DATABASE: 'wcos'
MYSQL_ROOT_PASSWORD: 'changeme'
MYSQL_PASSWORD: 'changeme'
MYSQL_USER: 'wcos'
volumes:
- "./deploy/wcos-dump.sql:/docker-entrypoint-initdb.d/wcos-dump.sql"
# - "./db-data:/var/lib/mysql"
ports:
- '3306:3306'
expose:
- '3306'
networks:
- wcos-network
### Nginx Container
wcos-nginx:
image: nginx:alpine
container_name: wcos-nginx
restart: unless-stopped
ports:
### Project is configured to allow serving under a reverse proxies
### in such cases, you would need to only expose the http line while
### allowing the reverse proxy handle the ssl connection between users and the server.
- 2222:80
### if deploying for production without reverse-proxy uncomment below and comment '2222:80' above.
# - 80:80
# - 443:443
volumes:
- ./:/var/www
- ./deploy/wcos-nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- wcos-network
networks:
wcos-network:
driver: bridge