-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
44 lines (39 loc) · 991 Bytes
/
docker-compose.prod.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
services:
nginx:
image: nginx:alpine
container_name: laravel-nginx
restart: unless-stopped
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/ssl:/etc/letsencrypt
- .:/var/www
ports:
- "80:80"
- "443:443"
depends_on:
- app
networks:
- laravel-network
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./nginx/ssl:/etc/letsencrypt
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew && sleep 12h & wait $${!}; done;'"
depends_on:
- nginx
phpmyadmin:
image: phpmyadmin:latest
container_name: phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: mysql
PMA_USER: laravel_user
PMA_PASSWORD: user_password
ports:
- "8073:80"
networks:
- laravel-network
networks:
laravel-network: