-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
59 lines (59 loc) · 1.46 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3'
services:
swipester:
build:
context: ./proxy
dockerfile: Dockerfile
networks:
- droplet
- swipester
depends_on:
- laravel
- swipester-nuxt
swipester-nuxt:
build:
context: ./client
dockerfile: Dockerfile
restart: always
working_dir: /usr/src/app
environment:
HOST: swipester-nuxt
BASE_URL: http://laravel:80/
networks:
- swipester
laravel:
build:
context: .
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
environment:
WWWUSER: '${WWWUSER}'
APP_URL: ${APP_URL}
depends_on:
- mysql
networks:
- swipester
mysql:
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- 'swipester-data:/var/lib/mysql'
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
networks:
- swipester
networks:
droplet:
external:
name: digitalocean-proxy_droplet
swipester:
driver: bridge
volumes:
swipester-data:
driver: local